Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!decwrl!labrea!rutgers!topaz.rutgers.edu!ron From: ron@topaz.rutgers.edu (Ron Natalie) Newsgroups: comp.unix.wizards Subject: Re: Confusing documentation about system(3) in 4.3BSD? Message-ID: <18390@topaz.rutgers.edu> Date: 27 Feb 88 15:08:59 GMT References: <3161@phri.UUCP> Organization: The Office of Mismanagement and Bean Counting Lines: 9 Keywords: exit status You're confusing shell exit status (to itself) and the process exit status available to C programs (via wait). Read the wait(2) manual page. The high byte during normal operation contains the arghument from the exit sys-call in the child. The low byte contains the process termination status. This usually means whether the process died of some signal (like Illegal Instruction, Memory Fault, Bus Error, etc...) and whether or not it dumped core. -Ron