[vox-tech] Suspending a process by PID

Dave Margolis vox-tech@lists.lugod.org
Mon, 22 Dec 2003 10:05:26 -0800 (PST)


Nicole,

That (from the shell) would look something like this:

  kill -SIGSTOP 1159

(where 1159 is my PID)

To start the process back up:

  kill -SIGCONT 1159

If you're trying to call the same thing from a C program:

  kill(pid, SIGTSTP);(where pid is an int = to some PID)

This requires the following:
#include <sys/types.h>
#include <signal.h>

Dave

On Mon, 22 Dec 2003, Nicole TWN wrote:

> Hi gang
>
> Anyone know how to suspend a process given its PID?
>
> It seems like it should be possible, via signals or something, but I can't
> find how.
>
> Thanks
>
> --nicole twn
>
> _______________________________________________
> vox-tech mailing list
> vox-tech@lists.lugod.org
> http://lists.lugod.org/mailman/listinfo/vox-tech
>