Victor Shcherbatyuk wrote: > This fixes the problem with console redirected to /dev/null. ---snip--- > + dup2(fd, STDIN_FILENO); > + dup2(fd, STDOUT_FILENO); > + dup2(fd, STDERR_FILENO); Heheh, yet another reason to always use daemon(3) instead of rolling your own!