From owner-freebsd-standards@FreeBSD.ORG Tue Mar 22 20:02:18 2011 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 61FA1106566B for ; Tue, 22 Mar 2011 20:02:18 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id E3AA18FC15 for ; Tue, 22 Mar 2011 20:02:17 +0000 (UTC) Received: by bwz12 with SMTP id 12so7106673bwz.13 for ; Tue, 22 Mar 2011 13:02:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=XtsQeQAwVPiydiPw6Q48HcnWawhboe2dfBHu+woSS7E=; b=i1RApySmuh5CiMNJIv/7UnofrnSyoeexouNhFR6/0JG8JB1+A+yLUvS+ng3jsdYzC6 f+YRl5YvuNImRtRxoUMJZQ7iGriAD4plv/UuBlplbCFMSe/L1wktSlQfAqPl2E3Bacmn egGqmOfUUbz/jTBtA6wcHIhY7sme/NCVN+7CE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; b=SHU51v06ChVnnLRkMyEaQwtqTcql1YJQdNkB8S2w4PW3OWVMe6T1IAYJQTZUiu9BWE bslwCioVi+0mFlPjgUvjnspQB6MWvihoSX0UcyH0CLlx/gTMwNcBZGE2ij/IdKogCnku Uqi9j0am/rMhZnMoEDPuP9rLf+4R1cg7SHkg8= Received: by 10.204.8.141 with SMTP id h13mr5448438bkh.64.1300824136136; Tue, 22 Mar 2011 13:02:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.173.194 with HTTP; Tue, 22 Mar 2011 13:01:46 -0700 (PDT) In-Reply-To: <20110322181604.GA47588@zim.MIT.EDU> References: <201103221457.p2MEvJub035858@lurza.secnetix.de> <20110322181604.GA47588@zim.MIT.EDU> From: Chris Rees Date: Tue, 22 Mar 2011 20:01:46 +0000 Message-ID: To: Chris Rees , freebsd-standards@freebsd.org, Maxim Konovalov , Oliver Fromme Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: David Schultz Subject: Re: dd dies on SIGUSR1 X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: utisoft@gmail.com List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Mar 2011 20:02:18 -0000 On 22 March 2011 18:16, David Schultz wrote: > On Tue, Mar 22, 2011, Chris Rees wrote: >> Since POSIX has SIGUSR[12] as undefined, I think it's a POLA violation >> to have processes die when provided. > > Quite the contrary: The default behavior of SIGUSR1 on FreeBSD > follows both POSIX and historical precedent, so changing it would > be a violation of POLA. =A0Terminating the process is also the > default on Linux. However... I still think that because no-one in their right mind would use SIGUSR[12] to terminate a program it's pointless for it to happen, and can only cause annoyance. People want to hold onto historical behaviour for no good reason, and I feel that this is one of these occasions. There is no reason for it apart from 'that's how it always has been [because no-one's complained]'. I also disagree that it 'follows' POSIX, POLA *IMO* for undefined behaviour is generally do nothing or report an error. > Linux dd's interpretation of SIGUSR1 seems rather poorly > considered, since as you note, utilities that don't handle it will > simply die unexpectedly. =A0However, it certainly wouldn't hurt to > patch FreeBSD's dd to handle SIGUSR1 the same way as SIGINFO. > Could the original patch in the PR be good enough then? Thank you for the thoughts. I'm sorry if I seem to be ranting, and I fully understand if my proposal of changing the default of USR1 is rejected completely; I just wanted to have a reasoned discussion. David, if you think the original patch (which does what your last paragraph says) is OK then feel free to take that as the Fix. Thanks! Chris