File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,9 @@ var fs = require('fs');
88var waitpid = require ( 'waitpid' ) ;
99
1010process . on ( 'SIGCHLD' , function ( args ) {
11+ console . error ( ( new Date ( ) ) + " Got SIGCHLD: waiting for child process to terminate ... " )
1112 waitpid ( - 1 ) ;
13+ console . error ( ( new Date ( ) ) + " Child processed ended" )
1214} ) ;
1315
1416var opts = require ( 'optimist' )
@@ -129,11 +131,15 @@ wss.on('request', function(request) {
129131 rows : 30
130132 } ) ;
131133 }
134+ console . log ( ( new Date ( ) ) + " PID=" + term . pid + " STARTED on behalf of user=" + sshuser )
132135 term . on ( 'data' , function ( data ) {
133136 conn . send ( JSON . stringify ( {
134137 data : data
135138 } ) ) ;
136139 } ) ;
140+ term . on ( 'exit' , function ( code ) {
141+ console . log ( ( new Date ( ) ) + " PID=" + term . pid + " ENDED" )
142+ } )
137143 }
138144 if ( ! data )
139145 return ;
You can’t perform that action at this time.
0 commit comments