only use execvpe on linux #1121

pull/1293/head
nick black 4 years ago
parent 5904f31c8e
commit ee3dc54911
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -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);

Loading…
Cancel
Save