Skip Menu |

This queue is for tickets about the Net-OpenSSH CPAN distribution.

Report information
The Basics
Id: 54347
Status: resolved
Worked: 4 hours (240 min)
Priority: 0/
Queue: Net-OpenSSH

People
Owner: Nobody in particular
Requestors: ifomichev [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.44
Fixed in: (no value)



Subject: stdout_pipe doesn't work in mod_perl
Hello! The attached script works alright as a CGI script, i. e. outputs "Hello, world!", but it doesn't output anything if run as a ModPerl::Registry script. I'd expect it worked the same. If it is an unavoidable misfeature, I'd like to ask, if there is a workaround to capture the output under mod_perl at all. Because I tried various ways, including redirecting output with stdout_fh, but stuck everywhere after switching to mod_perl. -- Regards, Ivan
Subject: test.cgi
Download test.cgi
application/octet-stream 668b

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #54347] stdout_pipe doesn't work in mod_perl
Date: Fri, 5 Feb 2010 11:36:01 -0800 (PST)
To: bug-Net-OpenSSH [...] rt.cpan.org
From: Salvador Fandino <sfandino [...] yahoo.com>
Hi, Show quoted text
> The attached script works alright as a CGI script, i. e. outputs "Hello, > world!", but it doesn't output anything if run as a ModPerl::Registry > script. I'd expect it worked the same. > > If it is an unavoidable misfeature, I'd like to ask, if there is a > workaround to capture the output under mod_perl at all. Because I tried > various ways, including redirecting output with stdout_fh, but stuck > everywhere after switching to mod_perl.
I will not be able to look at this until next week. The issue is probably related to mod_perl doing funny things with the file handlers because of the apr compatibility layer. As a workaround, have you tried using the pipe_out method? Cheers, - Salva
On Fri Feb 05 14:36:38 2010, sfandino@yahoo.com wrote: Show quoted text
> As a workaround, have you tried using the pipe_out method?
I don't know how I missed this method, but I've tried it now and it has worked! Thank you very much for the hint! -- Regards, Ivan
The issue was related to STDIN and STDOUT being tied handles without real file descriptors behind. Tentatively solved in version 1.46_01