summaryrefslogtreecommitdiff
path: root/sbin/restore
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-01-19 17:57:44 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-01-19 17:57:44 +0000
commit14ed877776dcefece53d3ac792a4ed18ba7dd630 (patch)
treefcf291d1c7d9372b55a7c7ea822fd7af5d252b5d /sbin/restore
parenteaea12ff4f8a5979f9851fdd77caf066fec82cb6 (diff)
mark signal races i cannot fix at the moment
Diffstat (limited to 'sbin/restore')
-rw-r--r--sbin/restore/interactive.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/restore/interactive.c b/sbin/restore/interactive.c
index c9199dafae2..f4e4b59994f 100644
--- a/sbin/restore/interactive.c
+++ b/sbin/restore/interactive.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: interactive.c,v 1.10 2000/01/10 03:08:05 deraadt Exp $ */
+/* $OpenBSD: interactive.c,v 1.11 2001/01/19 17:57:41 deraadt Exp $ */
/* $NetBSD: interactive.c,v 1.10 1997/03/19 08:42:52 lukem Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)interactive.c 8.3 (Berkeley) 9/13/94";
#else
-static char rcsid[] = "$OpenBSD: interactive.c,v 1.10 2000/01/10 03:08:05 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: interactive.c,v 1.11 2001/01/19 17:57:41 deraadt Exp $";
#endif
#endif /* not lint */
@@ -795,8 +795,8 @@ onintr(signo)
int save_errno = errno;
if (command == 'i' && runshell)
- longjmp(reset, 1);
- if (reply("restore interrupted, continue") == FAIL)
- exit(1);
+ longjmp(reset, 1); /* XXX signal/longjmp reentrancy */
+ if (reply("restore interrupted, continue") == FAIL) /* XXX signal race */
+ _exit(1);
errno = save_errno;
}