go-daemon icon indicating copy to clipboard operation
go-daemon copied to clipboard

Handle potential fork error

Open vassilit opened this issue 5 years ago • 0 comments

It's been a long time since I haven't coded in C, but it seems that if (pid) encompass all return value from fork(), including negative (erroneous) ones. Therefore, perror("fork") is never executed.

vassilit avatar Sep 10 '20 09:09 vassilit