[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Exit codes from subprocesses?
- To: clisp-list@ma2s2.mathematik.uni-karlsruhe.de
- Subject: Exit codes from subprocesses?
- From: "Brian F. Dennis" <xjam@CS.Berkeley.EDU>
- Date: Tue, 02 Apr 1996 21:36:18 -0400
- Reply-to: xjam@cork.cs.berkeley.edu
Subprocesses executed under CLISP's control always return 0. I gather that
the integer is actually meant to represent the exit code of the child
process. Unfortunately, after looking at the source, the SIGCHLD handler is
set to SIG_IGN which means children can freely exit before their parent
does a wait. Thus, when the interpreter goes to do a wait, it detects an
error and returns 0. I don't believe this is the intended behavior, but I'm
not sure how to cleanly incorporate a fix. An example of the problem
follows.
> (execute "/usr/sww/bin/GNU/ls" "blah")
/usr/sww/bin/GNU/ls-3.12: blah: No such file or directory
0
>
--Bri