Mercurial > hg > octave-nkf
changeset 2092:a938192ff632
[project @ 1996-04-28 08:36:22 by jwe]
author | jwe |
---|---|
date | Sun, 28 Apr 1996 08:36:22 +0000 |
parents | 60f5e1c20815 |
children | 0b7c868bc4df |
files | src/sighandlers.cc |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/sighandlers.cc +++ b/src/sighandlers.cc @@ -139,8 +139,13 @@ // functions elsewhere and this function doesn't have to change. static RETSIGTYPE -sigchld_handler (int sig) +sigchld_handler (int /* sig */) { + // Can this ever cause trouble on systems that don't forget signal + // handlers when they are invoked? + + octave_set_signal_handler (SIGCHLD, sigchld_handler); + int status; pid_t pid = wait (&status); @@ -157,8 +162,6 @@ } } } - - octave_set_signal_handler (SIGCHLD, sigchld_handler); } #if defined (__alpha__)