From the console, I can “ps -ef | grep program_name” and I can tell if a
process is running…
Is the library call to find out if a process is running… I want to send a
msg to another process that it should shutdown and know when it has
completed and the process is gone…I know the name, but not the process ID.
Kinda messy. You do a readdir() of /proc and for every process, use the
following devctl():
static struct {
procfs_debuginfo info;
char buf[_POSIX_PATH_MAX];
} name;
devctl(fd, DCMD_PROC_MAPDEBUG_BASE, &name, sizeof (name), 0);
For more information look at the source to the pidin utility at
http://cvs.qnx.com
Daryl Low
Jay Witherspoon wrote:
From the console, I can “ps -ef | grep program_name” and I can tell if a
process is running…
Is the library call to find out if a process is running… I want to send a
msg to another process that it should shutdown and know when it has
completed and the process is gone…I know the name, but not the process ID.