Browse Source

fixed compile error on IRIX 6.5.x on prctl()

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1980 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.18
Jan Kneschke 14 years ago
parent
commit
29fdd34abd
  1. 3
      NEWS
  2. 5
      src/server.c

3
NEWS

@ -3,7 +3,8 @@
NEWS
====
- 1.4.17 -
- 1.4.18 -
* fixed compile error on IRIX 6.5.x on prctl() (#1333)
- 1.4.17 - 2007-08-29

5
src/server.c

@ -775,7 +775,10 @@ int main (int argc, char **argv) {
setuid(pwd->pw_uid);
}
#endif
#ifdef HAVE_SYS_PRCTL_H
#if defined(HAVE_SYS_PRCTL_H) && defined(PR_SET_DUMPABLE)
/**
* on IRIX 6.5.30 they have prctl() but no DUMPABLE
*/
if (srv->srvconf.enable_cores) {
prctl(PR_SET_DUMPABLE, 1, 0, 0, 0);
}

Loading…
Cancel
Save