Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Aug 1998 16:26:38 +0200
From:      Martin Cracauer <cracauer@cons.org>
To:        Bruce Evans <bde@zeta.org.au>, cracauer@cons.org, freebsd-current@FreeBSD.ORG
Subject:   Re: make/SIGINT (Re: cvs commit: src/bin/sh jobs.c)
Message-ID:  <19980805162638.A26329@cons.org>
In-Reply-To: <19980805114825.A25826@cons.org>; from Martin Cracauer on Wed, Aug 05, 1998 at 11:48:25AM %2B0200
References:  <199805221609.CAA04233@godzilla.zeta.org.au> <19980805114825.A25826@cons.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> What happens is that nested shells (like in recursive makes or
> test04.sh of my testsuite) each print their own newline. The right
> thing would be one newline at all, not one per shell. onint is not
> being called more than once for each shell, so I consider this
> cosmetic.

This seems fixable by

        if (tcgetpgrp(0) == getpid())
                write(STDERR_FILENO, "\n", 1);

Martin
-- 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Martin Cracauer <cracauer@cons.org> http://www.cons.org/cracauer
  cracauer@wavehh.hanse.de (batched, preferred for large mails)
  Tel.: (private) +4940 5221829 Fax.: (private) +4940 5228536
  Paper: (private) Waldstrasse 200, 22846 Norderstedt, Germany

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980805162638.A26329>