Daemons in C - is there a way they're meant to be implemented?
问题 I've got a general question about daemons in C, that I haven't seen an answer to by now. Is there a way how one should implement the control of a daemon process, like a convention or standard? --Rest is further explanation-- I have seen multiple documents teaching the basics how to create a daemon in C. Forking, closing file descriptors, changing root, etc... no problem. And they all stop, when the process enters a endless loop (when the daemon process is created - so to say). But this is