Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* What exactly does pclose() return?
@ 1996-01-18  5:00 Murray S. Kucherawy
  1996-01-21  5:00 ` John Hascall
  0 siblings, 1 reply; 2+ messages in thread
From: Murray S. Kucherawy @ 1996-01-18  5:00 UTC (permalink / raw)


Does pclose() simply return the status of the child, or does it return one
of those "wait" values where the status is really in the second byte of
the return value?  What's it *supposed* to do?

For example, let's say I expect the exit status of a program to be
67 (like sendmail when it gets "no such user").  Should pclose()
return 67, or 256*67?

The man page on OSF/1 doesn't say either way, but the weak wording suggests
the former, and I'm getting the latter.  If I write my code to presume
the latter, how portable is it going to be?
-- 
Murray S. Kucherawy ====================================== mskucher@hookup.net
Engineering/Operations Manager                HookUp Communication Corporation
(905) 847-8000                NIC Handle "MSK"       Oakville, Ontario, CANADA
--                EMACS: Eight Megs And Constantly Swapping                 --



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-01-21  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-01-18  5:00 What exactly does pclose() return? Murray S. Kucherawy
1996-01-21  5:00 ` John Hascall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox