pidfile_read(): Reindent.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
run_interactive(): Fix a potential file descriptor leak.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Fix various problems with unchecked return values from syscalls.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>