How to get Status of processes in C environment
Jun Lu
luj at delta.ecn.purdue.edu
Sun Sep 9 08:10:08 AEST 1990
In article <25467.26e7ac6a at kuhub.cc.ukans.edu> jian at kuhub.cc.ukans.edu writes:
>How does a program know the status of its spawned processes in C environment?
>In other words, what system calls can I use to get the status of spawned
>processes? Thanks in advance.
>
Try wait(2). Note the arg to the sys call is different on a BSD and SysV.
For more info, type "man 2 wait".
--
-------------------------------------------------------------------------------
Jun Lu, School of Aero & Astro, Purdue University, W. Lafayette, IN 47907
Internet:luj at ecn.purdue.edu Bitnet:luj%ecn.purdue.edu at purccvm UUCP:pur-ee!luj
Phone: 317-494-7864 Fax: 317-494-0307
More information about the Comp.unix.questions
mailing list