From owner-freebsd-standards@FreeBSD.ORG Tue Mar 22 18:34:54 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 055D4106566C for ; Tue, 22 Mar 2011 18:34:54 +0000 (UTC) (envelope-from das@FreeBSD.ORG) Received: from zim.MIT.EDU (ZIM.MIT.EDU [18.95.3.101]) by mx1.freebsd.org (Postfix) with ESMTP id C15A78FC0A for ; Tue, 22 Mar 2011 18:34:53 +0000 (UTC) Received: from zim.MIT.EDU (localhost [127.0.0.1]) by zim.MIT.EDU (8.14.4/8.14.2) with ESMTP id p2MIG4tU047753; Tue, 22 Mar 2011 14:16:04 -0400 (EDT) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by zim.MIT.EDU (8.14.4/8.14.2/Submit) id p2MIG4iX047752; Tue, 22 Mar 2011 14:16:04 -0400 (EDT) (envelope-from das@FreeBSD.ORG) Date: Tue, 22 Mar 2011 14:16:04 -0400 From: David Schultz To: Chris Rees Message-ID: <20110322181604.GA47588@zim.MIT.EDU> Mail-Followup-To: Chris Rees , freebsd-standards@freebsd.org, Maxim Konovalov , Oliver Fromme References: <201103221457.p2MEvJub035858@lurza.secnetix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: Oliver Fromme , Maxim Konovalov , freebsd-standards@FreeBSD.ORG Subject: Re: dd dies on SIGUSR1 X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Mar 2011 18:34:54 -0000 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. Terminating the process is also the default on Linux. Linux dd's interpretation of SIGUSR1 seems rather poorly considered, since as you note, utilities that don't handle it will simply die unexpectedly. However, it certainly wouldn't hurt to patch FreeBSD's dd to handle SIGUSR1 the same way as SIGINFO.