nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
model: intro `MModule::first_real_mmodule` to get the first non-fictive module
[nit.git]
/
c_src
/
exec_nit.c
diff --git
a/c_src/exec_nit.c
b/c_src/exec_nit.c
index
c808105
..
317e909
100644
(file)
--- a/
c_src/exec_nit.c
+++ b/
c_src/exec_nit.c
@@
-26,22
+26,19
@@
se_exec_data_t* exec_Process_Process_basic_exec_execute_4(void *s, char *prog, c
if (pipeflag & 1) {
int res = pipe(in_fd);
if ( res == -1 ) {
if (pipeflag & 1) {
int res = pipe(in_fd);
if ( res == -1 ) {
- fprintf( stderr, "Pipe init failed in Process:basic_exec_execute: %s\n", strerror( errno ) );
- exit(1);
+ return NULL;
}
}
if (pipeflag & 2) {
int res = pipe(out_fd);
if ( res == -1 ) {
}
}
if (pipeflag & 2) {
int res = pipe(out_fd);
if ( res == -1 ) {
- fprintf( stderr, "Pipe init failed in Process:basic_exec_execute: %s\n", strerror( errno ) );
- exit(1);
+ return NULL;
}
}
if (pipeflag & 4) {
int res = pipe(err_fd);
if ( res == -1 ) {
}
}
if (pipeflag & 4) {
int res = pipe(err_fd);
if ( res == -1 ) {
- fprintf( stderr, "Pipe init failed in Process:basic_exec_execute: %s\n", strerror( errno ) );
- exit(1);
+ return NULL;
}
}
}
}
@@
-85,7
+82,7
@@
se_exec_data_t* exec_Process_Process_basic_exec_execute_4(void *s, char *prog, c
/* calls */
execvp(prog, arg);
/* calls */
execvp(prog, arg);
- abort();
+ _exit(127);
}
else if (id > 0)
{ /* father */
}
else if (id > 0)
{ /* father */