diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2013-12-12 20:03:57 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2013-12-12 20:03:57 (GMT) |
commit | 492c50410477ec49deae280e3bc414459ee30fab (patch) | |
tree | 87bfbc45d4f44d2eeeb426f07e5aeb8043111738 /src | |
parent | 6db20a8d3cd7d79b3f81f9a6b24585a46f193ea2 (diff) | |
parent | 6ba48cc940501af140600450088da0680e95d6f0 (diff) | |
download | Doxygen-492c50410477ec49deae280e3bc414459ee30fab.zip Doxygen-492c50410477ec49deae280e3bc414459ee30fab.tar.gz Doxygen-492c50410477ec49deae280e3bc414459ee30fab.tar.bz2 |
Merge pull request #65 from pianofab/patch-1
Report details about fork() failure in logs.
Diffstat (limited to 'src')
-rw-r--r-- | src/portable.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/portable.cpp b/src/portable.cpp index 7b78439..258c50f 100644 --- a/src/portable.cpp +++ b/src/portable.cpp @@ -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]; |