Menu

#13 ZCIP does not de-attach from the terminal

bug
open
nobody
zcip (10)
5
2005-09-25
2005-09-25
No

When ZCIP is "daemonized", it does not de-attach properly from the
terminal. In particular, if you kill the terminal, ZCIP is (on some
OSes at least) also killed.

Technically, if ZCIP is daemonized, it forks a new process.
However, it does not close the stdin, stdout and stderr streams, like
it should. The standard solution these days, as described in Stevens'
"Advanced Programming in the UNIX Environemnt" (ISBN
0201563177), is to do a double fork. Google for "double fork
daemonize" for example code.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.