From b45cd330549c234d0c061602d6239b083ddb9978 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 11 Jun 2007 15:16:09 +0000 Subject: add daemon_logv() git-svn-id: file:///home/lennart/svn/public/libdaemon/trunk@116 153bfa13-eec0-0310-be40-b0cb6a0e1b4b --- libdaemon/dfork.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'libdaemon/dfork.h') diff --git a/libdaemon/dfork.h b/libdaemon/dfork.h index b7effa1..fcb32c3 100644 --- a/libdaemon/dfork.h +++ b/libdaemon/dfork.h @@ -27,7 +27,7 @@ #ifdef __cplusplus extern "C" { #endif - + /** \mainpage libdaemon * * libdaemon @@ -100,6 +100,13 @@ int daemon_retval_wait(int timeout); */ int daemon_retval_send(int s); +/** Close all file descriptors except those passed. List needs to be + * terminated by -1. FDs 0, 1, 2 will be kept open anyway. */ +int daemon_close_all(int except_fd, ...); + +/** Same as daemon_close_all but takes an array of fds, terminated by -1 */ +int daemon_close_allv(const int except_fds[]); + #ifdef __cplusplus } #endif -- cgit