]> git.tdb.fi Git - builder.git/commitdiff
Use a unique exit_code value to indicate fork failure
authorMikko Rasa <tdb@tdb.fi>
Wed, 30 May 2012 19:23:20 +0000 (19:23 +0000)
committerMikko Rasa <tdb@tdb.fi>
Sun, 8 Jul 2012 21:08:52 +0000 (00:08 +0300)
source/externaltask.cpp

index f24774e83a5cc8009aae92d2d172a41c2893c039..6ff6a3e90892bcecb8fcb47d448b9982cc05d2db 100644 (file)
@@ -39,7 +39,7 @@ void ExternalTask::start()
        if((pid = fork()))
        {
                if(pid==-1)
-                       exit_code = 1;
+                       exit_code = 1026;
                else
                        exit_code = 0;
        }