changeset 2694:13f134a00f12

[project @ 1997-02-18 15:33:28 by jwe]
author jwe
date Tue, 18 Feb 1997 15:33:28 +0000
parents f4d0604cbcc4
children 8721d278f2e9
files src/help.cc
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/help.cc	Tue Feb 18 15:25:23 1997 +0000
+++ b/src/help.cc	Tue Feb 18 15:33:28 1997 +0000
@@ -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;