From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,9ecfb994a8e47570,start X-Google-Attributes: gidfee84,public X-Google-Thread: 1014db,9ecfb994a8e47570,start X-Google-Attributes: gid1014db,public From: mskucher@vertex.tor.hookup.net (Murray S. Kucherawy) Subject: What exactly does pclose() return? Date: 1996/01/18 Message-ID: <4dmnc8$t0u@vertex.tor.hookup.net>#1/1 X-Deja-AN: 135666465 organization: HookUp Communication Corporation, Oakville, Ontario, CANADA nntp-posting-user: mskucher newsgroups: comp.lang.c,comp.unix.osf.osf1 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 --