diff options
author | Anton Lindqvist <anton@cvs.openbsd.org> | 2023-10-14 13:05:44 +0000 |
---|---|---|
committer | Anton Lindqvist <anton@cvs.openbsd.org> | 2023-10-14 13:05:44 +0000 |
commit | 4427c5c0a63501ca1dfe43a73eabdd5baf98cf6f (patch) | |
tree | 126b47074d71722f08080b33c9937d2534b978ad /regress/sys/kern | |
parent | 5c45faf8b3dbdbe9ee41df6f5e44ca9879b1be3d (diff) |
Suppress harmless EPIPE errors during test shutdown.
Diffstat (limited to 'regress/sys/kern')
-rw-r--r-- | regress/sys/kern/pipe/test-kqueue.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/regress/sys/kern/pipe/test-kqueue.c b/regress/sys/kern/pipe/test-kqueue.c index f13015f8be7..ef5587f7cd7 100644 --- 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"); |