Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 48164 invoked from network); 30 Jun 2009 18:29:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Jun 2009 18:29:32 -0000 Received: (qmail 16212 invoked by uid 500); 30 Jun 2009 18:29:41 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 16177 invoked by uid 500); 30 Jun 2009 18:29:41 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 16169 invoked by uid 99); 30 Jun 2009 18:29:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jun 2009 18:29:41 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of shibi.ns@gmail.com designates 209.85.221.200 as permitted sender) Received: from [209.85.221.200] (HELO mail-qy0-f200.google.com) (209.85.221.200) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jun 2009 18:29:32 +0000 Received: by qyk38 with SMTP id 38so378674qyk.28 for ; Tue, 30 Jun 2009 11:29:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=wppAIuZG+na+EerCD/J6pwiUQIBmxpHdgkCA2DlWUmg=; b=m1CtEvQB7VDdOKvHCwN8i3Mvvp26+mmHDxgQXZhuQwFb/pLxuLQvOAJp8euXHKZgHt agaNXFfv87qBwNyYrSA3wnl7jIKrELDdBZD+GxyxEU7FFBFE04G3kIZduzZrzSPf/Qe3 eQ1DFkWmKsLTqP2Ev27fmAnn4Sml05EmK1XrA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=t/WbzFF300rcrXaPGz3Bz1vm3xEIwAcj6Rz54K1Yqo/Nm6VNopmVH1mloyB1s57egy 8wdAz2/wncVAoYc7tVXczGNwU+zcUKqUwqqYTO0NmRnjT9OEaqKCnrgbzVVwsr1Pz8S6 I42OoeSC/C7WN/+VDg3erk4ziYo/rRPIYi00M= MIME-Version: 1.0 Received: by 10.229.97.14 with SMTP id j14mr2310049qcn.102.1246386551303; Tue, 30 Jun 2009 11:29:11 -0700 (PDT) Date: Tue, 30 Jun 2009 23:59:11 +0530 Message-ID: <672858890906301129o36913bc5pdb5e819960af3edb@mail.gmail.com> Subject: File Descriptor used by FileHandle under mod_perl 2.0.4 - is it a perl/mod_perl bug ? From: Shibi NS To: modperl@perl.apache.org Content-Type: multipart/alternative; boundary=0016364ef4d6a4afef046d94fb19 X-Virus-Checked: Checked by ClamAV on apache.org --0016364ef4d6a4afef046d94fb19 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi All, One of my application is using following code to execute a long running process and the control is return to the user with link to log file so that users can monitor the progress $req->pool->cleanup_register(sub{$self->final_process( $req,$cgi) ;}); And in final_process sub I have File open for writing the process progress my $log = new FileHandle("process.log", "a"); When I print the $log->fileno it print FD as 0 and I have couple other log files opened after this all of these having random numbers like 12,15 etc. my believe is FD 0 used for STDIN . Is this is bug or aim doing something wrong ? My Application is running Apache/2.2.9/Mod_perl 2.04/ perl, v5.8.8 under Red Hat Enterprise Linux release 3 Shibi Ns --0016364ef4d6a4afef046d94fb19 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi All,

One of my application is using following code to execute a l= ong running process and the control is return to the user with link to log = file so that users can monitor the progress

=A0=A0=A0 $req->pool= ->cleanup_register(sub{$self->final_process( $req,$cgi) ;});

And in final_process sub I have File open for writing the process progr= ess

my $log =3D new FileHandle("process.log", "a&quo= t;);

When I print the=A0 $log->fileno it print FD as 0=A0 and I h= ave couple other log files opened after this all of these having random num= bers like 12,15 etc. my believe is FD 0 used for STDIN . Is this is bug or = aim doing something wrong ?

My Application is running Apache/2.2.9/Mod_perl 2.04/ perl, v5.8.8 unde= r=A0 Red Hat Enterprise Linux release 3

Shibi Ns
--0016364ef4d6a4afef046d94fb19--