summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorceri <ceri@FreeBSD.org>2003-11-12 23:08:23 +0000
committerceri <ceri@FreeBSD.org>2003-11-12 23:08:23 +0000
commitc6fd0f880351b558110bacb7c2ace7feba2009fc (patch)
tree5049836dd2aa4ae370cdd915c84621e9fe827a27 /gnu
parente4c017da4f5bf2ed1b33ccc7628959f965021168 (diff)
downloadFreeBSD-src-c6fd0f880351b558110bacb7c2ace7feba2009fc.zip
FreeBSD-src-c6fd0f880351b558110bacb7c2ace7feba2009fc.tar.gz
Attempt to save the last dregs of emacs users' sanity by saving the
contents of the PR when an interrupt is received during the editor session. This stops the use of ^G from deleting a filled PR from underneath the user. PR: bin/59201 Submitted by: Heikki Suonsivu <hsu@evoluutio.bbnetworks.net> MFC After: 2 weeks
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/send-pr/send-pr.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/send-pr/send-pr.sh b/gnu/usr.bin/send-pr/send-pr.sh
index f80a0a4..ea6e98a 100644
--- a/gnu/usr.bin/send-pr/send-pr.sh
+++ b/gnu/usr.bin/send-pr/send-pr.sh
@@ -262,7 +262,7 @@ TEMP=`mktemp -t pf` || exit 1
# Catch some signals. ($xs kludge needed by Sun /bin/sh)
xs=0
trap 'rm -f $REF $TEMP; exit $xs' 0
-trap 'echo "$COMMAND: Aborting ..."; rm -f $REF $TEMP; xs=1; exit' 1 2 3 13 15
+trap 'echo "$COMMAND: Aborting ... saving unfinished PR into /tmp/pr.$$"; rm -f $REF ; mv $TEMP /tmp/pr.$$; xs=1; exit' 1 2 3 13 15
# If they told us to use a specific file, then do so.
if [ -n "$IN_FILE" ]; then
OpenPOWER on IntegriCloud