aboutsummaryrefslogtreecommitdiff
path: root/lib/daemon.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2012-01-27 09:53:17 -0800
committerBen Pfaff <blp@nicira.com>2012-02-02 16:26:53 -0800
commit7d0c5973d5165f3cc6099de326ad0dfc326bac33 (patch)
tree9a3b999be106928f49d24201288174f6b3b15987 /lib/daemon.h
parent8f46c9bb842d2564297939aef369b4e4baaaaa43 (diff)
daemon: New function daemon_save_fd() to preserve fds across detach.
This eliminates a kluge that was duplicated in three different daemons. Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/daemon.h')
-rw-r--r--lib/daemon.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/daemon.h b/lib/daemon.h
index eb38d5d8..1b4f988e 100644
--- a/lib/daemon.h
+++ b/lib/daemon.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, 2010, 2011 Nicira Networks.
+ * Copyright (c) 2008, 2009, 2010, 2011, 2012 Nicira Networks.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -64,6 +64,7 @@ bool is_chdir_enabled(void);
void set_detach(void);
bool get_detach(void);
void daemon_set_monitor(void);
+void daemon_save_fd(int fd);
void daemonize(void);
void daemonize_start(void);
void daemonize_complete(void);