Mercurial > hg > octave-lyh
diff src/help.cc @ 2694:13f134a00f12
[project @ 1997-02-18 15:33:28 by jwe]
author | jwe |
---|---|
date | Tue, 18 Feb 1997 15:33:28 +0000 (1997-02-18) |
parents | 25fbbe6074e9 |
children | 18395aaeafb7 |
line wrap: on
line diff
--- a/src/help.cc +++ b/src/help.cc @@ -59,6 +59,7 @@ #include "pt-pr-code.h" #include "sighandlers.h" #include "symtab.h" +#include "syswait.h" #include "toplev.h" #include "unwind-prot.h" #include "utils.h" @@ -559,8 +560,8 @@ octave_set_interrupt_handler (old_interrupt_handler); - if ((status & 0xff) == 0) - status = (status >> 8) & 0xff; + if (WIFEXITED (status)) + status = WEXITSTATUS (status); else status = 127;