libraries/iosrv/client/client_command.cpp
changeset 73 dc41da2f70a4
parent 0 7f656887cf89
equal deleted inserted replaced
69:849a0b46c767 73:dc41da2f70a4
   329 	iServerReadPipe.AttachL(iServerReadHandle, RIoEndPoint::EForeground);
   329 	iServerReadPipe.AttachL(iServerReadHandle, RIoEndPoint::EForeground);
   330 	// attach the pcons writer to the other end of our server read pipe
   330 	// attach the pcons writer to the other end of our server read pipe
   331 	LeaveIfErr(iPcons.AttachWriter(iServerReadPipe, RIoPersistentConsole::EDetachOnHandleClose), _L("Cannot connect writer to persistent console %S"), &iPersistentConsoleName);
   331 	LeaveIfErr(iPcons.AttachWriter(iServerReadPipe, RIoPersistentConsole::EDetachOnHandleClose), _L("Cannot connect writer to persistent console %S"), &iPersistentConsoleName);
   332 	iServerReader = CServerReader::NewL(iServerReadHandle, *this);
   332 	iServerReader = CServerReader::NewL(iServerReadHandle, *this);
   333 	
   333 	
   334 	if (iServerProcess.Process().Handle() != KNullHandle && iServerProcess.Process().Handle() != RProcess().Handle())
   334 	if (iServerProcess.Process().Handle() != KNullHandle)
   335 		{
   335 		{
   336 		// We created a new server process, but it's not yet been resumed.
   336 		// We created a new server process, but it's not yet been resumed.
   337 		iServerProcess.Detach(); // Note, iServerWatch has already logged onto the process so there's no need to use RChildProcess::Run.
   337 		iServerProcess.Detach(); // Note, iServerWatch has already logged onto the process so there's no need to use RChildProcess::Run.
   338 		iWaitingForServerPrompt = ETrue;
   338 		iWaitingForServerPrompt = ETrue;
   339 		}
   339 		}