summaryrefslogtreecommitdiffstats
path: root/src/portable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/portable.cpp')
-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];