Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
exit with error 2 when not able to run setrlimit to the father process knows it is an error
Baptiste Daroussin committed 9 years ago
commit a42547f95a15804fe716f306817f9e7892a78135
parent f8c9afb
1 file changed +1 -1
modified libpkg/fetch.c
@@ -554,7 +554,7 @@ pkg_fetch_file_to_fd(struct pkg_repo *repo, const char *url, int dest,
			}
			rl_zero.rlim_cur = rl_zero.rlim_max = 0;
			if (setrlimit(RLIMIT_NPROC, &rl_zero) == -1)
-
				err(EXIT_FAILURE, "Enable to setrlimit(RLIMIT_NPROC)");
+
				err(2, "Enable to setrlimit(RLIMIT_NPROC)");
			break;
		default:
			while (waitpid(pid, &pstat, 0) == -1 && errno == EINTR)