comparison svr-chansession.c @ 83:6539c9480b23

fix for AIX not having WCOREDUMP
author Matt Johnston <matt@ucc.asn.au>
date Tue, 17 Aug 2004 09:56:23 +0000
parents b0316ce64e4b
children b8e36c1a5520
comparison
equal deleted inserted replaced
82:8f26145a0997 83:6539c9480b23
90 } 90 }
91 if (WIFSIGNALED(status)) { 91 if (WIFSIGNALED(status)) {
92 chansess->exitsignal = WTERMSIG(status); 92 chansess->exitsignal = WTERMSIG(status);
93 #ifndef AIX 93 #ifndef AIX
94 chansess->exitcore = WCOREDUMP(status); 94 chansess->exitcore = WCOREDUMP(status);
95 #else
96 chansess->exitcore = 0;
95 #endif 97 #endif
96 } else { 98 } else {
97 /* we use this to determine how pid exited */ 99 /* we use this to determine how pid exited */
98 chansess->exitsignal = -1; 100 chansess->exitsignal = -1;
99 } 101 }