summaryrefslogtreecommitdiff
path: root/usr.sbin/lpr/lprm
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-11-23 03:58:20 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-11-23 03:58:20 +0000
commit303691bd4aa8c95441d01f02bcdb86f75e1bdaf6 (patch)
treee526bb85aee1ee03ee11ec7f886bb1429e24dbd2 /usr.sbin/lpr/lprm
parent5bce9eb803ff87338cbef6aa2e55f2ae8d7ddf00 (diff)
use the same siginterrupt() trick in lpc(1) as in timedc(1). we have to hack
a global into the other programs since they share some source.
Diffstat (limited to 'usr.sbin/lpr/lprm')
-rw-r--r--usr.sbin/lpr/lprm/lprm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/lpr/lprm/lprm.c b/usr.sbin/lpr/lprm/lprm.c
index b9ad446c5e4..838224a29ef 100644
--- a/usr.sbin/lpr/lprm/lprm.c
+++ b/usr.sbin/lpr/lprm/lprm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lprm.c,v 1.7 2001/08/30 17:38:13 millert Exp $ */
+/* $OpenBSD: lprm.c,v 1.8 2001/11/23 03:58:18 deraadt Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -44,7 +44,7 @@ static const char copyright[] =
#if 0
static const char sccsid[] = "@(#)lprm.c 8.1 (Berkeley) 6/6/93";
#else
-static const char rcsid[] = "$OpenBSD: lprm.c,v 1.7 2001/08/30 17:38:13 millert Exp $";
+static const char rcsid[] = "$OpenBSD: lprm.c,v 1.8 2001/11/23 03:58:18 deraadt Exp $";
#endif
#endif /* not lint */
@@ -84,6 +84,8 @@ uid_t uid, euid; /* real and effective user id's */
static char luser[MAXLOGNAME]; /* buffer for person */
+volatile sig_atomic_t gotintr;
+
void usage __P((void));
int