|
|
@ -259,6 +259,7 @@ ncsubproc* ncsubproc_createv(ncplane* n, const ncsubproc_options* opts,
|
|
|
|
if(ret->pid == 0){
|
|
|
|
if(ret->pid == 0){
|
|
|
|
execv(bin, arg);
|
|
|
|
execv(bin, arg);
|
|
|
|
//fprintf(stderr, "Error execv()ing %s\n", bin);
|
|
|
|
//fprintf(stderr, "Error execv()ing %s\n", bin);
|
|
|
|
|
|
|
|
raise(SIGKILL);
|
|
|
|
exit(EXIT_FAILURE);
|
|
|
|
exit(EXIT_FAILURE);
|
|
|
|
}else if(ret->pid < 0){
|
|
|
|
}else if(ret->pid < 0){
|
|
|
|
free(ret);
|
|
|
|
free(ret);
|
|
|
@ -288,6 +289,7 @@ ncsubproc* ncsubproc_createvp(ncplane* n, const ncsubproc_options* opts,
|
|
|
|
if(ret->pid == 0){
|
|
|
|
if(ret->pid == 0){
|
|
|
|
execvp(bin, arg);
|
|
|
|
execvp(bin, arg);
|
|
|
|
//fprintf(stderr, "Error execv()ing %s\n", bin);
|
|
|
|
//fprintf(stderr, "Error execv()ing %s\n", bin);
|
|
|
|
|
|
|
|
raise(SIGKILL);
|
|
|
|
exit(EXIT_FAILURE);
|
|
|
|
exit(EXIT_FAILURE);
|
|
|
|
}else if(ret->pid < 0){
|
|
|
|
}else if(ret->pid < 0){
|
|
|
|
free(ret);
|
|
|
|
free(ret);
|
|
|
@ -321,6 +323,7 @@ ncsubproc* ncsubproc_createvpe(ncplane* n, const ncsubproc_options* opts,
|
|
|
|
execvpe(bin, arg, env);
|
|
|
|
execvpe(bin, arg, env);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
//fprintf(stderr, "Error execv()ing %s\n", bin);
|
|
|
|
//fprintf(stderr, "Error execv()ing %s\n", bin);
|
|
|
|
|
|
|
|
raise(SIGKILL);
|
|
|
|
exit(EXIT_FAILURE);
|
|
|
|
exit(EXIT_FAILURE);
|
|
|
|
}else if(ret->pid < 0){
|
|
|
|
}else if(ret->pid < 0){
|
|
|
|
free(ret);
|
|
|
|
free(ret);
|
|
|
|