X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fdaemon.h;h=8cbcfafe2442472eb1e16ea65269a2980ea498af;hb=e43928f2862b83a3c13e8662490a22fa25405be5;hp=eb38d5d87971aa3d222a385ec352640520d21a08;hpb=b2fda3effc787f265b5ad5dfa967ac00627bd075;p=openvswitch diff --git a/lib/daemon.h b/lib/daemon.h index eb38d5d8..8cbcfafe 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,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); @@ -72,4 +73,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 */