From owner-svn-src-head@FreeBSD.ORG Thu Jun 10 10:19:03 2010 Return-Path: Delivered-To: svn-src-head@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 777F31065674; Thu, 10 Jun 2010 10:19:03 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from server.mypc.hu (server.mypc.hu [87.229.73.95]) by mx1.freebsd.org (Postfix) with ESMTP id 27FD18FC1A; Thu, 10 Jun 2010 10:19:02 +0000 (UTC) Received: from server.mypc.hu (localhost [127.0.0.1]) by server.mypc.hu (Postfix) with ESMTP id 4CFA414DB9C9; Thu, 10 Jun 2010 12:19:02 +0200 (CEST) X-Virus-Scanned: amavisd-new at server.mypc.hu Received: from server.mypc.hu ([127.0.0.1]) by server.mypc.hu (server.mypc.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id CWLto64nVM6w; Thu, 10 Jun 2010 12:18:59 +0200 (CEST) Received: from [192.168.1.105] (catv-80-99-92-167.catv.broadband.hu [80.99.92.167]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by server.mypc.hu (Postfix) with ESMTPSA id BE46814DB7AE; Thu, 10 Jun 2010 12:18:59 +0200 (CEST) Message-ID: <4C10BC10.3090903@FreeBSD.org> Date: Thu, 10 Jun 2010 12:18:56 +0200 From: Gabor Kovesdan User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; es-ES; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: Jilles Tjoelker References: <201006061136.o56Ba9tr029717@svn.freebsd.org> <20100606120004.GH83316@deviant.kiev.zoral.com.ua> <20100606121444.GA82819@nagual.pp.ru> <20100606131841.GA68034@stack.nl> In-Reply-To: <20100606131841.GA68034@stack.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Kostik Belousov , Andrey Chernov , svn-src-all@FreeBSD.ORG, src-committers@FreeBSD.ORG, svn-src-head@FreeBSD.ORG Subject: Re: svn commit: r208868 - in head/usr.bin: bc dc X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jun 2010 10:19:03 -0000 > >> Yes, better use write(2) and _exit(2) here. >> > I wonder if a signal handler is necessary at all here. The shell should > print a newline after an interruption. This does not appear to work in > sh(1) in the (default) interactive job control mode, but works in tcsh, > bash and zsh for example. > > Yes, it was indeed a good suggestion and then we don't have to deal with undefined behaviour. I've just committed the fix. Thanks for the suggestion. -- Gabor Kovesdan FreeBSD Volunteer EMAIL: gabor@FreeBSD.org .:|:. gabor@kovesdan.org WEB: http://people.FreeBSD.org/~gabor .:|:. http://kovesdan.org