@@ -161,7 +161,7 @@ export class Client {
161
161
* @param options Options to execute for the command
162
162
*/
163
163
public spawn ( command : string , args : string [ ] = [ ] , options ?: SpawnOptions ) : ChildProcess {
164
- return this . doSpawn ( command , args , options , false ) ;
164
+ return this . doSpawn ( command , args , options , false , false ) ;
165
165
}
166
166
167
167
/**
@@ -272,6 +272,7 @@ export class Client {
272
272
tmpDirectory : init . getTmpDirectory ( ) ,
273
273
workingDirectory : init . getWorkingDirectory ( ) ,
274
274
os : opSys ,
275
+ shell : init . getShell ( ) ,
275
276
} ;
276
277
this . initDataEmitter . emit ( this . _initData ) ;
277
278
} else if ( message . hasEvalDone ( ) ) {
@@ -316,7 +317,14 @@ export class Client {
316
317
if ( ! s ) {
317
318
return ;
318
319
}
319
- s . pid = message . getIdentifySession ( ) ! . getPid ( ) ;
320
+ const pid = message . getIdentifySession ( ) ! . getPid ( ) ;
321
+ if ( typeof pid !== "undefined" ) {
322
+ s . pid = pid ;
323
+ }
324
+ const title = message . getIdentifySession ( ) ! . getTitle ( ) ;
325
+ if ( typeof title !== "undefined" ) {
326
+ s . title = title ;
327
+ }
320
328
} else if ( message . hasConnectionEstablished ( ) ) {
321
329
const c = this . connections . get ( message . getConnectionEstablished ( ) ! . getId ( ) ) ;
322
330
if ( ! c ) {
@@ -347,6 +355,7 @@ export class Client {
347
355
} else if ( message . hasSharedProcessActive ( ) ) {
348
356
this . sharedProcessActiveEmitter . emit ( {
349
357
socketPath : message . getSharedProcessActive ( ) ! . getSocketPath ( ) ,
358
+ logPath : message . getSharedProcessActive ( ) ! . getLogPath ( ) ,
350
359
} ) ;
351
360
} else if ( message . hasServerEstablished ( ) ) {
352
361
const s = this . servers . get ( message . getServerEstablished ( ) ! . getId ( ) ) ;
0 commit comments