Return-Path: Delivered-To: apmail-modperl-archive@apache.org Received: (qmail 69775 invoked by uid 500); 6 Nov 2001 23:37:16 -0000 Mailing-List: contact modperl-help@apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list modperl@apache.org Received: (qmail 69755 invoked from network); 6 Nov 2001 23:37:15 -0000 Date: Tue, 6 Nov 2001 23:36:23 +0000 From: Luciano Miguel Ferreira Rocha To: Tom Servo Cc: modperl@apache.org Subject: Re: mod_perl, pipes, and "No child processes" Message-ID: <20011106233622.A26947@nsk.yi.org> Reply-To: strange@nsk.yi.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from tomservo@cnw.com on Tue, Nov 06, 2001 at 03:24:13PM -0800 Disclaimer: 'Author of this message is not responsible for any harm done to reader's computer.' Organization: 'NSK' Section: 'Admin' X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > > I was under the assumption that doing something similar to: > > my $returnval = $msg->send(); > > Would give a similar answer. > > I'll give the $? a shot though. I've noticed that from the shell, it > always has a 0, and that would show up as false under perl... Well, on the shell and every other program, an exit status of 0 means success, and a higher one means an error of some kind. Btw: /bin/false ; echo $? ==> 1 /bin/true ; echo $? ==> 0 Also, the SIGCHLD is sent when a child exits, no matter if in error. You should then check the $? for the reason of the exit and for the return code, if exited normally. Regards, Luciano Rocha -- Luciano Rocha, strange@nsk.yi.org The trouble with computers is that they do what you tell them, not what you want. -- D. Cohen