[uClinux-dev] patch to fix thttpd in uClinux-dist-20080808

2008-09-30 Thread David Wu
Hi Greg and all, Here is a patch for thttpd against uClinux-dist-200808011(uClinux-dist-20080808 + 20080811 patch) This patch fixes CGI calls for uClinux(vfork). Here is an example to test: /bin/thttpd -p 80 -d /home/httpd -c **.cgi -u root There is one issue: I got "Bad file descripto

Re: [uClinux-dev] patch to fix thttpd in uClinux-dist-20080808

2008-10-02 Thread Greg Ungerer
Hi David, David Wu wrote: Hi Greg and all, Here is a patch for thttpd against uClinux-dist-200808011(uClinux-dist-20080808 + 20080811 patch) This patch fixes CGI calls for uClinux(vfork). Here is an example to test: /bin/thttpd -p 80 -d /home/httpd -c **.cgi -u root There is one issue

Re: [uClinux-dev] patch to fix thttpd in uClinux-dist-20080808

2008-10-02 Thread David Wu
On Thu, 02 Oct 2008 03:00:29 -0400, Greg Ungerer <[EMAIL PROTECTED]> wrote: Hi David, David Wu wrote: Hi Greg and all, Here is a patch for thttpd against uClinux-dist-200808011(uClinux-dist-20080808 + 20080811 patch) This patch fixes CGI calls for uClinux(vfork). Here is an example to t

RE: [uClinux-dev] patch to fix thttpd in uClinux-dist-20080808

2008-10-02 Thread Gavin Lambert
Quoth David Wu: > Here is a patch for thttpd against > uClinux-dist-200808011(uClinux-dist-20080808 + 20080811 patch) > > This patch fixes CGI calls for uClinux(vfork). Here is an example to > test: I've previously sent (larger) patches for thttpd in that make it use vfork. Been running for ag

Re: [uClinux-dev] patch to fix thttpd in uClinux-dist-20080808

2008-10-02 Thread David Wu
On Thu, 02 Oct 2008 18:48:28 -0400, Gavin Lambert <[EMAIL PROTECTED]> wrote: Quoth David Wu: Here is a patch for thttpd against uClinux-dist-200808011(uClinux-dist-20080808 + 20080811 patch) This patch fixes CGI calls for uClinux(vfork). Here is an example to test: I've previously sent (l

Re: [uClinux-dev] patch to fix thttpd in uClinux-dist-20080808

2008-10-03 Thread David Wu
On Thu, 02 Oct 2008 19:26:01 -0400, David Wu <[EMAIL PROTECTED]> wrote: On Thu, 02 Oct 2008 18:48:28 -0400, Gavin Lambert <[EMAIL PROTECTED]> wrote: Quoth David Wu: Here is a patch for thttpd against uClinux-dist-200808011(uClinux-dist-20080808 + 20080811 patch) This patch fixes CGI call

RE: [uClinux-dev] patch to fix thttpd in uClinux-dist-20080808

2008-10-05 Thread Gavin Lambert
Quoth David Wu: > OK. For normally CGI program(I mean exit normally) it works fine. But If > I try to call "cat kmsg" in a CGI program then it will block further > request from browser. It seems there is one missing close on the socket. That's just vfork at work, isn't it? vfork blocks the exec

Re: [uClinux-dev] patch to fix thttpd in uClinux-dist-20080808

2008-10-07 Thread David Wu
On Sun, 05 Oct 2008 19:17:49 -0400, Gavin Lambert <[EMAIL PROTECTED]> wrote: Quoth David Wu: OK. For normally CGI program(I mean exit normally) it works fine. But If I try to call "cat kmsg" in a CGI program then it will block further request from browser. It seems there is one missing close

Re: [uClinux-dev] patch to fix thttpd in uClinux-dist-20080808

2008-10-29 Thread David Wu
I have created attched patch using Gavin's original patch plus my changes -- adding fdwatch in cgi_interpose_output(). The timeout for read is 5000ms -- terminating the child process if the timeout expires. again this patch applies to uClinux-dist-20080808. On Tue, 07 Oct 2008 11:01:19

RE: [uClinux-dev] patch to fix thttpd in uClinux-dist-20080808

2008-10-29 Thread Gavin Lambert
Quoth David Wu: > I have created attched patch using Gavin's original patch plus my > changes > -- adding fdwatch in cgi_interpose_output(). The timeout for read > is 5000ms > -- terminating the child process if the timeout expires. > again this patch applies to uClinux-dist-20080808. Is

Re: [uClinux-dev] patch to fix thttpd in uClinux-dist-20080808

2008-10-29 Thread David Wu
On Wed, 29 Oct 2008 17:13:23 -0400, Gavin Lambert <[EMAIL PROTECTED]> wrote: Quoth David Wu: I have created attched patch using Gavin's original patch plus my changes -- adding fdwatch in cgi_interpose_output(). The timeout for read is 5000ms -- terminating the child process if the

Re: [uClinux-dev] patch to fix thttpd in uClinux-dist-20080808

2008-10-30 Thread David Wu
On Wed, 29 Oct 2008 17:28:24 -0400, David Wu <[EMAIL PROTECTED]> wrote: On Wed, 29 Oct 2008 17:13:23 -0400, Gavin Lambert <[EMAIL PROTECTED]> wrote: Quoth David Wu: I have created attched patch using Gavin's original patch plus my changes -- adding fdwatch in cgi_interpose_output().