You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Torsten Foertsch <to...@tlc.de> on 1999/03/25 20:59:14 UTC
os-linux/4134: apachectl status prints broken pipe
>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 <ap...@Apache.Org> 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! ]