Skip to content
Snippets Groups Projects
Commit 4b5b1a24 authored by Valentin Rothberg's avatar Valentin Rothberg
Browse files

get dnsmasq process: lookup in proc FS


Golang`s `os.FindProcess()` always returns success on UNIX machines -
even when the PID doesn't exist.  Hence, add a lookup in the proc FS
to check if the given exists or not.  That's okay since dnsmane is
targetting Linux only.

Also rename the method to `getProcess()` and add some comments.

Signed-off-by: default avatarValentin Rothberg <rothberg@redhat.com>
parent 88eb53f6
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment