diff chansession.h @ 130:154c8d5a6d1e private-rez

propagate of 82bb923d0154750ef716b66b498561f882891946 and f51a272341ee12268fe7028bc2f2bad66c603069 from branch 'matt.dbclient.work' to 'matt.dbclient.rez'
author Matt Johnston <matt@ucc.asn.au>
date Tue, 21 Sep 2004 10:08:21 +0000
parents 10f4d3319780
children 12d845ab7b5f
line wrap: on
line diff
--- a/chansession.h	Thu Sep 16 06:19:39 2004 +0000
+++ b/chansession.h	Tue Sep 21 10:08:21 2004 +0000
@@ -29,6 +29,14 @@
 #include "channel.h"
 #include "listener.h"
 
+struct exitinfo {
+
+	int exitpid; /* -1 if not exited */
+	int exitstatus;
+	int exitsignal;
+	int exitcore;
+};
+
 struct ChanSess {
 
 	unsigned char * cmd; /* command to exec */
@@ -41,10 +49,7 @@
 	unsigned char * term;
 
 	/* exit details */
-	int exited;
-	int exitstatus;
-	int exitsignal;
-	unsigned char exitcore;
+	struct exitinfo exit;
 	
 #ifndef DISABLE_X11FWD
 	struct Listener * x11listener;