1
0
forked from bip/bip

Revert "drop fork priviledges when running."

This reverts commit 1cbb1b9b7a.
It juste does not work, since this limit is uid-wide (thanks julien`)
This commit is contained in:
Arnaud Cornet 2008-12-10 23:27:53 +01:00
parent 3ab2755767
commit 2b96805ecb

View File

@ -1294,15 +1294,6 @@ int main(int argc, char **argv)
write(fd, buf, strlen(buf));
close(fd);
#ifdef RLIMIT_NPROC
struct rlimit rlim;
/* fork() is not need anymore, disable it */
rlim.rlim_max = rlim.rlim_cur = 0;
if (setrlimit(RLIMIT_NPROC, &rlim))
fatal("Could not drop fork priviledges");
#endif
bip.listener = listen_new(conf_ip, conf_port, conf_css);
if (!bip.listener)
fatal("Could not create listening socket");