From afd944a9a8b9d727326cdc4d3b7122384a8d9b5d Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 30 May 2012 19:23:20 +0000 Subject: [PATCH] Use a unique exit_code value to indicate fork failure --- source/externaltask.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/externaltask.cpp b/source/externaltask.cpp index f24774e..6ff6a3e 100644 --- a/source/externaltask.cpp +++ b/source/externaltask.cpp @@ -39,7 +39,7 @@ void ExternalTask::start() if((pid = fork())) { if(pid==-1) - exit_code = 1; + exit_code = 1026; else exit_code = 0; } -- 2.45.2