From 7d20bd0b101ca646e39d566386f87550d5f21612 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Mon, 12 Dec 2022 11:48:58 -0800 Subject: [PATCH] Extcap: Clean up our fifo in non-blocking mode. Use O_NONBLOCK when opening our fifo for cleanup. Ping #18715 --- extcap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extcap.c b/extcap.c index e5794a3c3e..f27337e2bd 100644 --- a/extcap.c +++ b/extcap.c @@ -1348,7 +1348,7 @@ gboolean extcap_session_stop(capture_session *cap_session) * here to let dumpcap return from the select() call. This has no * effect if dumpcap is not waiting. */ - int fd = ws_open(interface_opts->extcap_fifo, O_WRONLY, 0000); + int fd = ws_open(interface_opts->extcap_fifo, O_WRONLY|O_NONBLOCK, 0000); if (fd != -1) { close(fd); }