Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!mailrus!iuvax!ethome.et.iupui.edu!noose.ecn.purdue.edu!delta.ecn.purdue.edu!luj From: luj@delta.ecn.purdue.edu (Jun Lu) Newsgroups: comp.unix.questions Subject: Re: How to get Status of processes in C environment Message-ID: <1990Sep8.221008.3145@ecn.purdue.edu> Date: 8 Sep 90 22:10:08 GMT References: <25467.26e7ac6a@kuhub.cc.ukans.edu> Sender: news@ecn.purdue.edu (USENET news) Organization: Purdue University Engineering Computer Network Lines: 13 In article <25467.26e7ac6a@kuhub.cc.ukans.edu> jian@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@ecn.purdue.edu Bitnet:luj%ecn.purdue.edu@purccvm UUCP:pur-ee!luj Phone: 317-494-7864 Fax: 317-494-0307