mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Laine Gholson <laine.gholson@gmail.com>
To: musl@lists.openwall.com
Subject: [PATCH] configure: fix ctrl+C
Date: Mon, 24 Oct 2016 20:53:22 -0500	[thread overview]
Message-ID: <23b44ff4-70c7-9db0-a727-7b5336b3827b@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 136 bytes --]

the trap in the configure script doesn't exit like it should, fix that, and while I am at it, use rm -f to fix spurious errors from rm.

[-- Attachment #2: configure.patch --]
[-- Type: text/x-patch, Size: 661 bytes --]

From 69f5bbcc3369ee94a91458178f0660a16c73732b Mon Sep 17 00:00:00 2001
From: Laine Gholson <laine.gholson@gmail.com>
Date: Mon, 24 Oct 2016 20:48:18 -0500
Subject: [PATCH] configure: fix ctrl-c

---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index 707eb12..13afa22 100755
--- a/configure
+++ b/configure
@@ -214,7 +214,7 @@ tmpc="./conf$$-$PPID-$i.c"
 test "$i" -gt 50 && fail "$0: cannot create temporary file $tmpc"
 done
 set +C
-trap 'rm "$tmpc"' EXIT INT QUIT TERM HUP
+trap 'rm -f "$tmpc"; exit 1' EXIT INT QUIT TERM HUP
 
 #
 # Check whether we are cross-compiling, and set a default
-- 
2.10.1


             reply	other threads:[~2016-10-25  1:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-25  1:53 Laine Gholson [this message]
2016-10-27 11:12 ` Alexander Monakov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=23b44ff4-70c7-9db0-a727-7b5336b3827b@gmail.com \
    --to=laine.gholson@gmail.com \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).