Bug #68

CGIs don't work with linux-rtsig

Added by Anonymous 1366 days ago. Updated 95 days ago.

Status:New Start:
Priority:Normal Due date:
Assigned to:jan % Done:

0%

Category:core
Target version:-
Pending:

No

Resolution:


Description

When i set the event handler to linux-rtsig and try to access a CGI url, I get no reply, the connection just stays open and nothing happens. No CPU usage. Everything works fine with poll.

-- lighttpd

History

03/14/2005 10:40 AM - Anonymous

$ uname -a
Linux 213-146-167-224 2.4.26-1um #3 Thu Jun 3 22:56:55 UTC 2004 i686 unknown

-- lighttpd

08/31/2008 10:01 PM - stbuehler

Let me quote http://lists.danga.com/pipermail/memcached/2004-March/000543.html:

rtsig is an absolute piece of shit interface. Two smart people tried to make it work with libevent and spent a lot of time working on it but never got anywhere because it's just so horribly broken.

I thought the libevent maintainer disabled it. :/ You really shouldn't be using it.

Just use poll/select. CPU usage will be slightly higher.

So.. you know what to do :)

If someone helps to find the problem we may fix it; a strace would be good start.

I guess the signal isn't delivered correctly if we fork, perhaps we need to do setsid(0) or something like that after every fork.

Also available in: Atom PDF