daemon: Avoid redundant code in already_running().
authorBen Pfaff <blp@nicira.com>
Tue, 29 Mar 2011 16:44:55 +0000 (09:44 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 29 Mar 2011 17:09:47 +0000 (10:09 -0700)
commit18e124a20b366ee96e73600624a1a4000c816604
treea585254ce03d364d2fa016bde8ab5c7bc467b776
parent2159de839136af40641738284c7eabde1b0fc72b
daemon: Avoid redundant code in already_running().

This function substantially duplicated read_pidfile(), so reuse that
code instead.
lib/daemon.c
lib/daemon.h
python/ovs/daemon.py