Re: Problem mit unserer /bin/sh

From: Harold Gutch <logix(at)foobar.franken.de>
Date: Wed, 4 Dec 2002 19:30:12 +0100

On Wed, Dec 04, 2002 at 07:15:29PM +0100, Oliver Fromme wrote:
> Harold Gutch <logix(at)foobar.franken.de> wrote:
> > Ich weiss nicht, ob das fuer dich ausreichend ist, aber wenn du
> > einen SIGINT oder SIGPIPE an die Shell schickst, gibt es keinen
> > solchen Output (s. src/bin/sh/jobs.c, um Zeile 970).
>
> Hilft leider nicht, weil ich damit die Subshell nicht weg
> kriege.

Hm, wenn ich in deinem Beispiel aus dem "kill" ein "kill -PIPE"
macht, passiert das hier:

> ./sh
Starting Counter ...
Doing some work ...
Doing even more work ...
Killed Counter.
Doing terribly much work ...
>

mit entsprechendem Zaehlen, aber eben ohne das stoerende
"Terminated". Und die Subshell ist natuerlich weg. Ist das
nicht das was willst? Dass ein SIGPIPE hier nicht korrekt ist,
ist mir schon klar, aber der Zweck heiligt nun mal die Mittel.

bye,
  Harold
>
tarting Counter ...
Doing some work ...
Doing even more work ...
Killed Counter.
Doing terribly much work ...
>

> > ein extra "silent"-Flag verpassen oder so.
>
> Das befürchte ich auch. So ein Pfusch. Ist mir ein Rätsel,
> wieso unsere sh diesen Müll ausgibt, wenn sie nicht interak-
> tiv ist und jobcontrol ausgeschaltet ist. Schwachfug. :-(
>
> Gruß
> Olli
>
> --
> Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München
> Any opinions expressed in this message may be personal to the author
> and may not necessarily reflect the opinions of secnetix in any way.
>
> "All that we see or seem is just a dream within a dream" (E. A. Poe)
>
> To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
> with "unsubscribe de-bsd-questions" in the body of the message

To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Wed 04 Dec 2002 - 19:30:37 CET

search this site