]> git.sur5r.net Git - openldap/commit
Change lutil_detach() to not close the descriptors before dup2(), try to
authorHallvard Furuseth <hallvard@openldap.org>
Thu, 30 Jan 2003 22:44:53 +0000 (22:44 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Thu, 30 Jan 2003 22:44:53 +0000 (22:44 +0000)
commit65d76d7db43bc059288f6d603574685bceeea044
treec4ece4c4fdb54e3d3e1aa6cc0eb4e9ff696b8f99
parent23c575805a834668bbe1be29dbf77854dd78f63a
Change lutil_detach() to not close the descriptors before dup2(), try to
open /dev/null and then / in read-only mode if opening /dev/null failed,
and skip the dup2()s as well if open() failed.
libraries/liblutil/detach.c