Received: (qmail 24665 invoked by uid 2012); 25 Mar 1999 19:59:14 -0000 Message-Id: <19990325195914.24664.qmail@hyperreal.org> Date: 25 Mar 1999 19:59:14 -0000 From: Torsten Foertsch Reply-To: torsten.foertsch@tlc.de To: apbugs@hyperreal.org Subject: apachectl status prints broken pipe X-Send-Pr-Version: 3.2 >Number: 4134 >Category: os-linux >Synopsis: apachectl status prints broken pipe >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Thu Mar 25 13:10:00 PST 1999 >Last-Modified: >Originator: torsten.foertsch@tlc.de >Organization: apache >Release: 1.3.4 >Environment: Linux 2.0.34 >Description: In line 139 of the apachectl script the output of lynx is piped thru awk. If awk exits before it has read lynx's complete output, lynx would get a SIGPIPE. >How-To-Repeat: >Fix: replace the line by ( trap '' SIGPIPE $LYNX $STATUSURL | awk ' /process$/ { print; exit } { print } ' ) By the way in line 53 you could append >/dev/null 2>&1 to kill -0 $PID. >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ] [If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request ] [from a developer. ] [Reply only with text; DO NOT SEND ATTACHMENTS! ]