Browse Source

use HAVE_SYS_PRCTL_H as HAVE_PRCTL is not checked for

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1958 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.17
Jan Kneschke 15 years ago
parent
commit
1e1a8e5907
  1. 1
      NEWS
  2. 2
      src/server.c

1
NEWS

@ -22,6 +22,7 @@ NEWS
* fixed extra Content-Length header on 1xx, 204 and 304 (#1002)
* fixed handling of duplicate If-Modified-Since to return 304
* fixed extracting status code from NPH scripts (#1125)
* fixed prctl() usage (#1310)
* removed config-check if passwd files exist (#1188)

2
src/server.c

@ -775,7 +775,7 @@ int main (int argc, char **argv) {
setuid(pwd->pw_uid);
}
#endif
#ifdef HAVE_PRCTL
#ifdef HAVE_SYS_PRCTL_H
if (srv->srvconf.enable_cores) {
prctl(PR_SET_DUMPABLE, 1, 0, 0, 0);
}

Loading…
Cancel
Save