2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-15 14:17:18 +00:00

daemon: Avoid redundant code in already_running().

This function substantially duplicated read_pidfile(), so reuse that
code instead.
This commit is contained in:
Ben Pfaff
2011-03-29 09:44:55 -07:00
parent 2159de8391
commit 18e124a20b
3 changed files with 48 additions and 60 deletions

View File

@@ -71,5 +71,6 @@ void die_if_already_running(void);
void ignore_existing_pidfile(void);
void daemon_usage(void);
pid_t read_pidfile(const char *name);
pid_t read_pidfile_if_exists(const char *name);
#endif /* daemon.h */