dns: refactor kill_existing() to always unlink pidfile
authorThomas Haller <thaller@redhat.com>
Tue, 22 Mar 2016 15:22:31 +0000 (16:22 +0100)
committerThomas Haller <thaller@redhat.com>
Tue, 22 Mar 2016 15:45:00 +0000 (16:45 +0100)
commit3e66813db22918abd8da1da9a9ca4828bc59d589
treef39c243331aab034fd0921e7388904ced319e703
parentca733526e6a5f08c98b23fe2c273d9ded77efd59
dns: refactor kill_existing() to always unlink pidfile

When a pidfile exists, it is always stale after this point
and kill_existing() should always unlink it.

Also, refactor kill_existing() to use nm_utils_kill_process_sync()
which waits for the process to be gone.
src/dns-manager/nm-dns-plugin.c