From 303691bd4aa8c95441d01f02bcdb86f75e1bdaf6 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 23 Nov 2001 03:58:20 +0000 Subject: 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. --- usr.sbin/lpr/lpq/lpq.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'usr.sbin/lpr/lpq') diff --git a/usr.sbin/lpr/lpq/lpq.c b/usr.sbin/lpr/lpq/lpq.c index 0b7b09cf550..4b2c9b2ab48 100644 --- a/usr.sbin/lpr/lpq/lpq.c +++ b/usr.sbin/lpr/lpq/lpq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lpq.c,v 1.8 2001/08/30 17:38:13 millert Exp $ */ +/* $OpenBSD: lpq.c,v 1.9 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[] = "@(#)lpq.c 8.3 (Berkeley) 5/10/95"; #else -static const char rcsid[] = "$OpenBSD: lpq.c,v 1.8 2001/08/30 17:38:13 millert Exp $"; +static const char rcsid[] = "$OpenBSD: lpq.c,v 1.9 2001/11/23 03:58:18 deraadt Exp $"; #endif #endif /* not lint */ @@ -77,6 +77,8 @@ int users; /* # of users in user array */ uid_t uid, euid; +volatile sig_atomic_t gotintr; + static int ckqueue __P((char *)); void usage __P((void)); -- cgit v1.2.3