🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #355

Re: How to get the return status of a finished process

#355
From: Jonathan I. Kamens
Date: Fri, 10 Apr 1992 13:34
16 lines
1410 bytes
If you're writing a program that invokes other processes, then I hope
you know that you have to use wait() (or wait3() or wait4() or
whatever) to wait for those processes when they are done.  Note that
the return from wait() includes the exit value of the process, as well
as whether it was killed, aborted, or whatever.

For more information about this, see the comp.unix.questions FAQ
postings, which discuss wait()ing for children that have finished
running.

-- 
Jonathan Kamens						jik@MIT.Edu
MIT Information Systems/Athena		    Moderator, news.answers
    (Send correspondence related to the news.answers newsgroup
	{and ONLY correspondence related to the newsgroup}
		 to news-answers-request@MIT.Edu.)
Technical Details
Message-ID: <JIK.92Apr10093446@pit-manager.mit.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!uwm.edu!ogicse!mintaka.lcs.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!jik
References: <1992Apr10.100743.18835@informatik.uni-bremen.de>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!uwm.edu!ogicse!mintaka.lcs.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!jik
From: jik@athena.mit.edu (Jonathan I. Kamens)
Newsgroups: comp.unix.programmer
Subject: Re: How to get the return status of a finished process
Message-ID: <JIK.92Apr10093446@pit-manager.mit.edu>
Date: 10 Apr 92 13:34:52 GMT
Article-I.D.: pit-mana.JIK.92Apr10093446
References: <1992Apr10.100743.18835@informatik.uni-bremen.de>
Sender: news@athena.mit.edu (News system)
Organization: Massachusetts Institute of Technology
Lines: 16
In-Reply-To: aspect@sun1g.informatik.Uni-Bremen.DE's message of 10 Apr 92 10:07:43 GMT
Nntp-Posting-Host: pit-manager.mit.edu