From owner-freebsd-standards@FreeBSD.ORG Mon Mar 21 16:11:21 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 3F6701065675 for ; Mon, 21 Mar 2011 16:11:21 +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 C13238FC0A for ; Mon, 21 Mar 2011 16:11:20 +0000 (UTC) Received: by bwz12 with SMTP id 12so5858021bwz.13 for ; Mon, 21 Mar 2011 09:11:19 -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=Cs1SGYKC+8I1Y8nWC0CKvS9vnd7yuvvmW2pJ0KNTAMU=; b=gxO6k1DAMyS8qLpPJS3jbswf8nDE+fSks6OSDT8QDJq95k6pF2UNf2IKtwMHU8jEi7 tmcANw2v98e63HIxbLIX4EFPVilob8gLql1GyFeCOVJXAYMMevuBkk8LKFCYPlrBEZ+K Ve4JbJ4KPmFYW9qZcCP/SEDv10OOfVz7qrmlk= 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=GfaqZ9atzdGHvP/BGUmxmaD1gzZkkFaV+mvv2+9XEhyWB5kqSWuXe6xj9IZyhGbqyx IQm2lGaYOlE8wp7g8tQ5vryicTqAniWBpQqtE8TEhjd73cqxS5NV1W/4ZQ+ZAzWlBUrY AphK5ktc03j05YjwAGvdjDp/McK5WlZfIFr0A= Received: by 10.204.20.70 with SMTP id e6mr3984624bkb.145.1300723866847; Mon, 21 Mar 2011 09:11:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.173.194 with HTTP; Mon, 21 Mar 2011 09:08:38 -0700 (PDT) In-Reply-To: References: From: Chris Rees Date: Mon, 21 Mar 2011 16:08:38 +0000 Message-ID: To: Maxim Konovalov Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-standards@freebsd.org 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: Mon, 21 Mar 2011 16:11:21 -0000 On 21 March 2011 14:43, Maxim Konovalov wrote: > On Mon, 21 Mar 2011, 12:03-0000, Chris Rees wrote: > >> Hi all, >> >> Does anyone have any thoughts on [1]? >> >> >> It's a common usage in GNU systems to send SIGUSR1 to dd, which >> causes it to print info. However... when I tried it it died (ouch). >> >> Two patches are in the PR, one to print summary (imitate GNU) and >> after talking to gavin@ on #bsdcode I made one to ignore the signal. >> >> Which one of these fixes will be most popular? >> > FreeBSD uses SIGINFO for such purposes for ages in many programs > apart from dd(1). =A0IMHO, nothing to fix here. Of course, and I'm not suggesting that FreeBSD is wrong in any way. My point was that it was rather a harsh punishment for using a GNU-ism where dd died after 30 minutes of chugging or so. Would it hurt for dd to ignore the signal rather than die? I imagine a lot less than otherwise. Chris