Derek Martin wrote:

>   /* there are other ways to handle this */
>
>   /* store the command to kill the process in a buffer */
>   sprintf(buff, "kill -TERM %d", PID);
>
>   /* use the system function call to run the Unix kill command */
>   status=system( buff );

    The code 'status=kill(PID,SIGTERM);' accomplishes the same thing in a much more
efficient manner.  I believe perl also has a 'kill' routine.

--
Bob Bell                Compaq Computer Corporation
Software Engineer       110 Spit Brook Rd - ZKO3-3U/14
TruCluster Group        Nashua, NH 03062-2698
[EMAIL PROTECTED]     603-884-0595




**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************

Reply via email to