You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Randomly stumbled upon this repo on how to daemonize a process. Super helpful! Found a small issue that caused me troubles. The fd = 0 is not getting closed at the line below.
Yeah, it is not production code. 😄 The code is intended for learning/teaching purpose. Thus I didn't check for returned values in all cases to keep code readable. Maybe I will try to fix it. BTW: Could you estimate why it wasn't possible to close stdin? Something like this could give you some useful error message:
Randomly stumbled upon this repo on how to daemonize a process. Super helpful! Found a small issue that caused me troubles. The fd = 0 is not getting closed at the line below.
daemon/src/daemon.c
Line 192 in d629c1f
The text was updated successfully, but these errors were encountered: