Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 201412 | Differences between
and this patch

Collapse All | Expand All

(-)src-native-new/src/agents/tptpProcessController/TPTPProcessController.cpp (-3 / +3 lines)
Lines 1007-1015 Link Here
1007
		return;
1007
		return;
1008
	}
1008
	}
1009
1009
1010
	if (console->in) CLOSE_TPTP_HANDLE(console->in);
1010
	if (console->in) cleanPipeUp(&console->in);
1011
	if (console->out) CLOSE_TPTP_HANDLE(console->out);
1011
	if (console->out) cleanPipeUp(&console->out);
1012
	if (console->err) CLOSE_TPTP_HANDLE(console->err);
1012
	if (console->err) cleanPipeUp(&console->err);
1013
	return;
1013
	return;
1014
}
1014
}
1015
1015
(-)src-native-new/src/transport/namedPipeTL/NamedPipeListener.c (-1 / +15 lines)
Lines 358-367 Link Here
358
				else if (rc == TPTP_PIPE_HAS_ENDED)
358
				else if (rc == TPTP_PIPE_HAS_ENDED)
359
				{
359
				{
360
					/* this is expected and normal */
360
					/* this is expected and normal */
361
					TPTP_LOG_DEBUG_MSG(pThreadData->pRequestBlk->pServerData, "Console: End of pipe recieved - exiting");
362
					pThreadData->threadStatus = TPTP_IDLE_THREAD;
361
				}
363
				}
362
				else
364
				else
363
				{
365
				{
364
					TPTP_LOG_DEBUG_MSG2(pThreadData->pRequestBlk->pServerData, "Console: Error reading pipe(%s) rc(%d).", uuid, rc) ;
366
					TPTP_LOG_DEBUG_MSG2(pThreadData->pRequestBlk->pServerData, "Console: Error reading pipe(%s) rc(%d).", uuid, rc) ;
367
					pThreadData->threadStatus = TPTP_IDLE_THREAD;
365
				}
368
				}
366
369
367
				if (rc > 0)
370
				if (rc > 0)
Lines 384-390 Link Here
384
		}
387
		}
385
	}
388
	}
386
389
387
    tptp_initializeSemaphore(& pRequestDataBlock->hasProcessIdSemaphore);
390
	TPTP_LOG_DEBUG_MSG(pThreadData->pRequestBlk->pServerData, "Console: Closing named pipes") ;
391
    
392
	rc = disconnectFromNamedPipe(consoleHandle);
393
	TPTP_LOG_DEBUG_MSG2 (pThreadData->pRequestBlk->pServerData, "Disconnect from named pipe %d, error %d", rc, GetLastError());
394
	cleanPipeUp(&consoleHandle);
395
396
	disconnectFromNamedPipe(pRequestDataBlock->consoleInputPipe);
397
	cleanPipeUp(&pRequestDataBlock->consoleInputPipe);
398
399
	tptp_deleteSemaphore(&pRequestDataBlock->hasProcessIdSemaphore);
400
401
	TPTP_LOG_DEBUG_MSG(pThreadData->pRequestBlk->pServerData, "Stdout/stderr listening thread exited");
388
402
389
	free(pThreadData) ;
403
	free(pThreadData) ;
390
404

Return to bug 201412