@@ -161,7 +161,7 @@ export class Client {
161161 * @param options Options to execute for the command
162162 */
163163 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 ) ;
165165 }
166166
167167 /**
@@ -272,6 +272,7 @@ export class Client {
272272 tmpDirectory : init . getTmpDirectory ( ) ,
273273 workingDirectory : init . getWorkingDirectory ( ) ,
274274 os : opSys ,
275+ shell : init . getShell ( ) ,
275276 } ;
276277 this . initDataEmitter . emit ( this . _initData ) ;
277278 } else if ( message . hasEvalDone ( ) ) {
@@ -316,7 +317,14 @@ export class Client {
316317 if ( ! s ) {
317318 return ;
318319 }
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+ }
320328 } else if ( message . hasConnectionEstablished ( ) ) {
321329 const c = this . connections . get ( message . getConnectionEstablished ( ) ! . getId ( ) ) ;
322330 if ( ! c ) {
@@ -347,6 +355,7 @@ export class Client {
347355 } else if ( message . hasSharedProcessActive ( ) ) {
348356 this . sharedProcessActiveEmitter . emit ( {
349357 socketPath : message . getSharedProcessActive ( ) ! . getSocketPath ( ) ,
358+ logPath : message . getSharedProcessActive ( ) ! . getLogPath ( ) ,
350359 } ) ;
351360 } else if ( message . hasServerEstablished ( ) ) {
352361 const s = this . servers . get ( message . getServerEstablished ( ) ! . getId ( ) ) ;
0 commit comments