daemon: handle freopen() failure
commitc569b1fee151e467854ca268997f4f3baaf73564
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Fri, 26 Dec 2008 09:46:25 +0000 (26 10:46 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 27 Dec 2008 03:07:56 +0000 (26 19:07 -0800)
tree3790486e3c820cf637e2bd31ac889f579d3dbc07
parent8104ebfe8276657ee803cca7eb8665a78cf3ef83
daemon: handle freopen() failure

Die if stderr couldn't be sent to /dev/null when operating in inetd
mode and report the error message from the OS.

This fixes a compiler warning about the return value of freopen()
being ignored on Ubuntu 8.10.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
daemon.c