fm2279<p>Linux folks -- anybody have any idea how to properly daemonize a web server built with libmicrohttpd?</p><p>The library's examples all start the server (typically multithreaded but not forked?) then block on a call to getc/getchar.</p><p>I tried double-forking, but I did so hurriedly and may have got some things wrong. Thought I'd ask here in case somebody knows The Right Way.</p><p><a href="https://social.coop/tags/linux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>linux</span></a> <a href="https://social.coop/tags/c" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>c</span></a> <a href="https://social.coop/tags/libmicrohttpd" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>libmicrohttpd</span></a> <a href="https://social.coop/tags/daemon" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>daemon</span></a></p>