]> git.tuebingen.mpg.de Git - paraslash.git/commit
drop_privileges_or_die(): Check return value of setuid().
authorAndre Noll <maan@systemlinux.org>
Thu, 22 Oct 2009 20:42:36 +0000 (22:42 +0200)
committerAndre Noll <maan@systemlinux.org>
Thu, 22 Oct 2009 20:42:36 +0000 (22:42 +0200)
commit1f132af229ff899aae357ee75a3b8e7b4bd061bd
treecdc1684ffc2d914d7dc0d818ab3c91bf76ad259c
parentb46e786ab743f807d627eac3c3321e5e39d3d299
drop_privileges_or_die(): Check return value of setuid().

The call to setuid() may fail, e.g. because it brings the process over its RLIMIT_NPROC
resource limit. So print an error message and exit in this case.
daemon.c