Commit 492c5041 authored by Dimitri van Heesch's avatar Dimitri van Heesch

Merge pull request #65 from pianofab/patch-1

Report details about fork() failure in logs.
parents 6db20a8d 6ba48cc9
......@@ -84,7 +84,11 @@ int portable_system(const char *command,const char *args,bool commandHasConsole)
#else // Other Unices just use fork
pid = fork();
if (pid==-1) return -1;
if (pid==-1)
{
perror("fork error");
return -1;
}
if (pid==0)
{
const char * argv[4];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment