X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fdaemon.h;h=14436f311eeb9da7783da837517e235d9224df83;hb=f80022d9df98d29ee41176a4bc6cb91025da84b8;hp=eb38d5d87971aa3d222a385ec352640520d21a08;hpb=b2fda3effc787f265b5ad5dfa967ac00627bd075;p=sliver-openvswitch.git diff --git a/lib/daemon.h b/lib/daemon.h index eb38d5d87..14436f311 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, Inc. * * 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,9 @@ 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 remove_pidfile_from_unlink(void); +void add_pidfile_to_unlink(void); void daemonize(void); void daemonize_start(void); void daemonize_complete(void); @@ -72,4 +75,7 @@ void daemon_usage(void); pid_t read_pidfile(const char *name); pid_t read_pidfile_if_exists(const char *name); +pid_t fork_and_clean_up(void); +void daemonize_post_detach(void); + #endif /* daemon.h */