When running scripts exit from child with errno from execv().
This commit is contained in:
parent
26778964a4
commit
8b5f6d7b65
2
lib/external/fexec.c
vendored
2
lib/external/fexec.c
vendored
@ -62,7 +62,7 @@ pfcexec(struct xbps_handle *xhp, const char *file, const char **argv)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
(void)execv(file, __UNCONST(argv));
|
(void)execv(file, __UNCONST(argv));
|
||||||
_exit(127);
|
_exit(errno);
|
||||||
/* NOTREACHED */
|
/* NOTREACHED */
|
||||||
case -1:
|
case -1:
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user