summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2013-12-12 20:03:57 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2013-12-12 20:03:57 (GMT)
commit492c50410477ec49deae280e3bc414459ee30fab (patch)
tree87bfbc45d4f44d2eeeb426f07e5aeb8043111738
parent6db20a8d3cd7d79b3f81f9a6b24585a46f193ea2 (diff)
parent6ba48cc940501af140600450088da0680e95d6f0 (diff)
downloadDoxygen-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.
-rw-r--r--src/portable.cpp6
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];