artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fed7a8
)
Suppress harmless EPIPE errors during test shutdown.
author
anton
<anton@openbsd.org>
Sat, 14 Oct 2023 13:05:43 +0000
(13:05 +0000)
committer
anton
<anton@openbsd.org>
Sat, 14 Oct 2023 13:05:43 +0000
(13:05 +0000)
regress/sys/kern/pipe/test-kqueue.c
patch
|
blob
|
history
diff --git
a/regress/sys/kern/pipe/test-kqueue.c
b/regress/sys/kern/pipe/test-kqueue.c
index
f13015f
..
ef5587f
100644
(file)
--- a/
regress/sys/kern/pipe/test-kqueue.c
+++ b/
regress/sys/kern/pipe/test-kqueue.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: test-kqueue.c,v 1.
5 2023/10/10 18:18:05
anton Exp $ */
+/* $OpenBSD: test-kqueue.c,v 1.
6 2023/10/14 13:05:43
anton Exp $ */
/*
* Copyright (c) 2019 Anton Lindqvist <anton@openbsd.org>
@@
-75,6
+75,8
@@
test_kqueue_read(void)
n = write(ctx.c_pipe[1], &ctx.c_buf[0], 1);
if (n == -1) {
+ if (errno == EPIPE)
+ break;
if (errno == EAGAIN)
continue;
err(1, "write");