Return-Path: X-Original-To: apmail-subversion-dev-archive@minotaur.apache.org Delivered-To: apmail-subversion-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0000618A0C for ; Mon, 1 Feb 2016 10:41:22 +0000 (UTC) Received: (qmail 57680 invoked by uid 500); 1 Feb 2016 10:41:17 -0000 Delivered-To: apmail-subversion-dev-archive@subversion.apache.org Received: (qmail 57638 invoked by uid 500); 1 Feb 2016 10:41:17 -0000 Mailing-List: contact dev-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@subversion.apache.org Received: (qmail 57464 invoked by uid 99); 1 Feb 2016 10:41:16 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Feb 2016 10:41:16 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 6A10B18034B for ; Mon, 1 Feb 2016 10:41:16 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.1 X-Spam-Level: X-Spam-Status: No, score=-0.1 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=wandisco.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id MKqTPhP9CnEY for ; Mon, 1 Feb 2016 10:41:07 +0000 (UTC) Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 8BA412565F for ; Mon, 1 Feb 2016 10:41:06 +0000 (UTC) Received: by mail-wm0-f52.google.com with SMTP id p63so64180400wmp.1 for ; Mon, 01 Feb 2016 02:41:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wandisco.com; s=gapps; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=DjQhnxf/P+xQZvQEAzQu4X2uwV3p6wFnomfTuyVyXFs=; b=m3eFRf0rcoV5fhtdTpERcKtHZWpzikqA2nhnHZB908TQKBcDRuaj1AJs0Zto8yn2q1 Ir0VM9D21jb/1Y7kO1tRXXZATpysIGUulpofkgqPbDpcNy7CM/CbX+uv7Jz/iayMyEK4 j91ISx7GvNqgHi+mYx6FwjCTqdVahMHSB7Wvg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=DjQhnxf/P+xQZvQEAzQu4X2uwV3p6wFnomfTuyVyXFs=; b=LVStzscVA3Af2G1NkvK/CGqCOOb2luqMUeu96ToPAZuuh3TDIJSSqpbvMwyQo3hLCB yDae3diRBMgWjPDlZghwlHXDQNi0Nbj2aBC03pY/yz6BSy87GGDaFRCLng38UPy3Hroo rdMkvIv0F66WP2Uu1DOGP4KyzJprf4Y9Xn3bTsBF+IWpUNAKDpZ5CKswNiZBO7KZLNxH Vhxb2mikNV1EP9v8Zd8DxNT3FpgCNNK4a/eGe6o6qhOs8O4A3geQQGrKbA7sPG5Fpj0v CiGUa2Hh0LUu9EE/uqldVyu6nfk+FBLe0ELrxxIYgzcVDf4mJIUG0ZSKNGGR3tF2JpLR ANIw== X-Gm-Message-State: AG10YOSNDQDVIp6hwqYip/mX6IqbYr2x/uOeRAumFAWFqKKBLOQ4j9ceHzWRZg4+SkFLcEmh X-Received: by 10.28.104.87 with SMTP id d84mr11570599wmc.56.1454323266172; Mon, 01 Feb 2016 02:41:06 -0800 (PST) Received: from localhost (cpc81211-farn9-2-0-cust890.6-2.cable.virginm.net. [86.22.207.123]) by smtp.gmail.com with ESMTPSA id u130sm10710303wmg.15.2016.02.01.02.41.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Feb 2016 02:41:05 -0800 (PST) From: Philip Martin To: Daniel Shahaf Cc: dev@subversion.apache.org, commits@subversion.apache.org Subject: Re: svn commit: r1727621 - in /subversion/trunk/subversion: svn/svn.c svnadmin/svnadmin.c svnbench/svnbench.c svnfsfs/svnfsfs.c svnlook/svnlook.c svnrdump/svnrdump.c svnsync/svnsync.c References: <20160129185522.A2F813A0249@svn01-us-west.apache.org> <20160130074708.GA30257@tarsus.local2> Date: Mon, 01 Feb 2016 10:41:04 +0000 In-Reply-To: <20160130074708.GA30257@tarsus.local2> (Daniel Shahaf's message of "Sat, 30 Jan 2016 07:47:08 +0000") Message-ID: <87h9hsaf27.fsf@wandisco.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Daniel Shahaf writes: > philip@apache.org wrote on Fri, Jan 29, 2016 at 18:55:22 -0000: >> +#ifndef WIN32 >> + /* If cancelled by SIGINT then attempt to exit via SIGINT. This >> + allows the shell to use WIFSIGNALED and WTERMSIG to detect the >> + SIGINT. See http://www.cons.org/cracauer/sigint.html */ >> + if (cancelled && apr_signal(SIGINT, SIG_DFL) == APR_SUCCESS) >> + /* No APR support for getpid() so cannot use apr_proc_kill(). */ >> + kill(getpid(), SIGINT); >> +#endif > > Should this be done for other signals we catch? (Those signals are > SIGTERM, SIGHUP, and SIGBREAK.) Shells handle those values of > WTERMSIG() too: > > % perl -e 'kill "TERM", $$' > zsh: terminated perl -e 'kill "TERM", $$' That change is broken for two reasons: - the same handler is used for all those signals but we always exit via SIGINT - except apr_signal does not return APR_SUCCESS so we never exit via SIGINT. -- Philip Martin WANdisco