From: mskucher@vertex.tor.hookup.net (Murray S. Kucherawy)
Subject: What exactly does pclose() return?
Date: 1996/01/18 [thread overview]
Message-ID: <4dmnc8$t0u@vertex.tor.hookup.net> (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 --
next reply other threads:[~1996-01-18 5:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-01-18 5:00 Murray S. Kucherawy [this message]
1996-01-21 5:00 ` What exactly does pclose() return? John Hascall
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox