https://redmine.lighttpd.net/https://redmine.lighttpd.net/favicon.ico?13667327412013-08-06T10:53:28Zlighty labsLighttpd - Bug #2502: fastcgi process became a orphan processhttps://redmine.lighttpd.net/issues/2502?journal_id=81362013-08-06T10:53:28Zstbuehler
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Need Feedback</i></li></ul><p>show us a strace of lighttpd that proves your statement.</p> Lighttpd - Bug #2502: fastcgi process became a orphan processhttps://redmine.lighttpd.net/issues/2502?journal_id=81372013-08-06T11:18:12Zsilence
<ul><li><strong>File</strong> <a href="/attachments/1480">lighttpd_SIGTERM.strace</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/1480/lighttpd_SIGTERM.strace">lighttpd_SIGTERM.strace</a> added</li><li><strong>File</strong> <a href="/attachments/1481">lighttpd_notmal.strace</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/1481/lighttpd_notmal.strace">lighttpd_notmal.strace</a> added</li></ul><p>I uploaded 2 strace files:<br />1) lighttpd_SIGTERM.strace</p>
<blockquote>
<p>send SIGTERM to stop lighttpd when spawning fastcgi process</p>
</blockquote>
<p>2) lighttpd_normal.strace</p>
<blockquote>
<p>send SIGTERM to stop lighttpd when lighttpd is already started</p>
</blockquote>
<p>--------------------------------------------------------------------------------<br />The signal_handler function is not registered when spawning fastcgi process:<br /><pre>
[server.c]
line 937 plugins_call_set_defaults()
-> mod_fastcgi spawns fastcgi process
line 993 register signal by sigaction() till this line.
</pre></p> Lighttpd - Bug #2502: fastcgi process became a orphan processhttps://redmine.lighttpd.net/issues/2502?journal_id=81382013-08-06T11:29:45Zstbuehler
<ul></ul><p>Ok, thx. I'll have a closer look :)</p>
<p>Just two things for your setup (unrelated to the bug):</p>
<ul>
<li>don't put sockets in /tmp - another user could create sockets in /tmp with the same names, and lighttpd would connect to them. use a directory that is only writable by lighttpd, if you spawn with lighttpd</li>
<li>your max-procs settings look very high. In such large setups it is probably worth the effort to use <a class="wiki-page" href="https://redmine.lighttpd.net/projects/spawn-fcgi/wiki">spawn-fcgi</a>, perhaps combined with <a class="wiki-page" href="https://redmine.lighttpd.net/projects/multiwatch/wiki">multiwatch</a></li>
</ul> Lighttpd - Bug #2502: fastcgi process became a orphan processhttps://redmine.lighttpd.net/issues/2502?journal_id=81392013-08-06T11:29:57Zstbuehler
<ul><li><strong>Target version</strong> set to <i>1.4.33</i></li></ul> Lighttpd - Bug #2502: fastcgi process became a orphan processhttps://redmine.lighttpd.net/issues/2502?journal_id=81462013-08-30T15:52:43Zstbuehler
<ul><li><strong>Status</strong> changed from <i>Need Feedback</i> to <i>Assigned</i></li></ul> Lighttpd - Bug #2502: fastcgi process became a orphan processhttps://redmine.lighttpd.net/issues/2502?journal_id=81552013-08-30T17:50:05Zstbuehler
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Fixed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset r2901.</p>