When running scripts exit from child with errno from execv().

This commit is contained in:
Juan RP 2013-02-26 09:12:44 +01:00
parent 26778964a4
commit 8b5f6d7b65

View File

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