comparison svr-chansession.c @ 115:9ffe5a6dbf3f

WCOREDUMP finally
author Matt Johnston <matt@ucc.asn.au>
date Tue, 31 Aug 2004 08:52:41 +0000
parents 2e9d1f29c50f
children 154c8d5a6d1e
comparison
equal deleted inserted replaced
114:2be6aa26a8c9 115:9ffe5a6dbf3f
91 if (WIFEXITED(status)) { 91 if (WIFEXITED(status)) {
92 chansess->exitstatus = WEXITSTATUS(status); 92 chansess->exitstatus = WEXITSTATUS(status);
93 } 93 }
94 if (WIFSIGNALED(status)) { 94 if (WIFSIGNALED(status)) {
95 chansess->exitsignal = WTERMSIG(status); 95 chansess->exitsignal = WTERMSIG(status);
96 #ifndef AIX 96 #if !defined(AIX) && defined(WCOREDUMP)
97 chansess->exitcore = WCOREDUMP(status); 97 chansess->exitcore = WCOREDUMP(status);
98 #else 98 #else
99 chansess->exitcore = 0; 99 chansess->exitcore = 0;
100 #endif 100 #endif
101 } else { 101 } else {