exec: display system error after failed fork
authorAlexandre Terrasa <alexandre@moz-code.org>
Thu, 21 Dec 2017 19:17:52 +0000 (14:17 -0500)
committerAlexandre Terrasa <alexandre@moz-code.org>
Thu, 21 Dec 2017 19:17:52 +0000 (14:17 -0500)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

lib/core/exec.nit

index fedc5de..1d82705 100644 (file)
@@ -327,6 +327,9 @@ class Process
                                close(err_fd[1]);
                        } else
                                result->err_fd = -1;
+               } else {
+                       perror("Process:");
+                       return NULL;
                }
 
                return result;