From 8b5f6d7b65623b62ccfe42ce74c1ea898f29b665 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 26 Feb 2013 09:12:44 +0100 Subject: [PATCH] When running scripts exit from child with errno from execv(). --- lib/external/fexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/external/fexec.c b/lib/external/fexec.c index 8fe84661..78dccb08 100644 --- a/lib/external/fexec.c +++ b/lib/external/fexec.c @@ -62,7 +62,7 @@ pfcexec(struct xbps_handle *xhp, const char *file, const char **argv) } } (void)execv(file, __UNCONST(argv)); - _exit(127); + _exit(errno); /* NOTREACHED */ case -1: return -1;