Revert "fork() and setsid() in daemon mode"

This reverts commit 13f9ed234db152fa3455de9c2d4cd9634a233d51.
(fork() and setsid() should be considered in another pull-request)