Skip to content

Commit

Permalink
only use execvpe on linux #1121
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Jan 12, 2021
1 parent 5904f31 commit ee3dc54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/fd.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,10 +381,10 @@ ncsubproc* ncsubproc_createvpe(ncplane* n, const ncsubproc_options* opts,
memset(ret, 0, sizeof(*ret));
ret->pid = launch_pipe_process(&fd, &ret->pidfd);
if(ret->pid == 0){
#ifdef __FreeBSD__
exect(bin, arg, env);
#else
#ifdef __linux__
execvpe(bin, arg, env);
#else
exect(bin, arg, env);
#endif
//fprintf(stderr, "Error execv()ing %s\n", bin);
exit(EXIT_FAILURE);
Expand Down

0 comments on commit ee3dc54

Please sign in to comment.