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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user