By setting `ASROOT=1` in a unit test makefile a test will now run as
root, using `sudo -n`.
This patch allows us to simplify the pidfilefn() test.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
- Simplify pidfile_read(), no need to call access() when fopen() is more
than capable of failing on its own if we do not have READ access.
- The remove() syscall requires that you check the return value, but we
don't care about that when having signalled a TERM signal to a process.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>