nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88b16ba
)
exec: display system error after failed fork
author
Alexandre Terrasa
<alexandre@moz-code.org>
Thu, 21 Dec 2017 19:17:52 +0000
(14:17 -0500)
committer
Alexandre 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
patch
|
blob
|
history
diff --git
a/lib/core/exec.nit
b/lib/core/exec.nit
index
fedc5de
..
1d82705
100644
(file)
--- a/
lib/core/exec.nit
+++ b/
lib/core/exec.nit
@@
-327,6
+327,9
@@
class Process
close(err_fd[1]);
} else
result->err_fd = -1;
+ } else {
+ perror("Process:");
+ return NULL;
}
return result;