summaryrefslogtreecommitdiff
path: root/usr.bin/last/last.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-11-05 09:42:14 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-11-05 09:42:14 +0000
commit29eb1d246434312bbe493c8381fdfc51f69fba7a (patch)
tree117e2d46e39fdf950a8eb7d1cf3ed2c91f08a311 /usr.bin/last/last.c
parente1968947ae857c71ac38fff397389d3859baadc2 (diff)
mark a zone of signal races
Diffstat (limited to 'usr.bin/last/last.c')
-rw-r--r--usr.bin/last/last.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/last/last.c b/usr.bin/last/last.c
index ff600aef89d..7bd7306bf36 100644
--- a/usr.bin/last/last.c
+++ b/usr.bin/last/last.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: last.c,v 1.16 2001/07/18 17:17:39 pvalchev Exp $ */
+/* $OpenBSD: last.c,v 1.17 2001/11/05 09:42:13 deraadt Exp $ */
/* $NetBSD: last.c,v 1.6 1994/12/24 16:49:02 cgd Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)last.c 8.2 (Berkeley) 4/2/94";
#endif
-static char rcsid[] = "$OpenBSD: last.c,v 1.16 2001/07/18 17:17:39 pvalchev Exp $";
+static char rcsid[] = "$OpenBSD: last.c,v 1.17 2001/11/05 09:42:13 deraadt Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -651,6 +651,7 @@ onintr(signo)
{
char *ct;
+ /* XXX signal race */
ct = ctime(&buf[0].ut_time);
printf("\ninterrupted %10.10s %8.8s \n", ct, ct + 11);
if (signo == SIGINT)