summaryrefslogtreecommitdiff
path: root/regress/sys/kern/kqueue/kqueue-flock.c
diff options
context:
space:
mode:
Diffstat (limited to 'regress/sys/kern/kqueue/kqueue-flock.c')
-rw-r--r--regress/sys/kern/kqueue/kqueue-flock.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/regress/sys/kern/kqueue/kqueue-flock.c b/regress/sys/kern/kqueue/kqueue-flock.c
index 68a14f5f56f..06b259f236f 100644
--- a/regress/sys/kern/kqueue/kqueue-flock.c
+++ b/regress/sys/kern/kqueue/kqueue-flock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kqueue-flock.c,v 1.1 2012/07/08 12:31:03 guenther Exp $ */
+/* $OpenBSD: kqueue-flock.c,v 1.2 2013/01/07 05:32:09 miod Exp $ */
/*
* Written by Philip Guenther <guenther@openbsd.org> 2012 Public Domain
*/
@@ -11,6 +11,7 @@
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <unistd.h>
@@ -40,7 +41,7 @@ check_lock(int fd, const char *msg)
if (fcntl(fd, F_GETLK, &fl))
err(1, "fcntl(GETLK)");
if (fl.l_type != F_WRLCK) {
- printf("lock not found %s\n");
+ printf("lock not found %s\n", msg);
_exit(1);
}
_exit(0);