missing information in man 3 system
Erich Dollansky
erichsfreebsdlist at alogt.com
Mon Feb 11 12:34:36 UTC 2013
Hi,
On Mon, 11 Feb 2013 13:59:17 +0200
Peter Pentchev <roam at ringlet.net> wrote:
> On Mon, Feb 11, 2013 at 06:27:57PM +0700, Erich Dollansky wrote:
> >
> > >
> > > if (WIFEXITED(code)) {
> > > printf("The program exited with code %d\n",
> > > WEXITSTATUS(code));
> >
> > So, this is what I need.
>
> Actually you need the whole set of tests, not just the WIFEXITED case,
> since the program you've ran through system() may have been killed by
> a signal or something.
>
I am aware of this. This is what I need to get the results in case of a
normal program termination.
> Glad to have been of assistance!
Yes, made my life much easier.
Erich
More information about the freebsd-doc
mailing list