aboutsummaryrefslogtreecommitdiffstats
path: root/extcap.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2022-12-12 11:48:58 -0800
committerGerald Combs <gerald@wireshark.org>2022-12-12 11:50:00 -0800
commit7d20bd0b101ca646e39d566386f87550d5f21612 (patch)
tree1102cd99b5d5ec45cd059cc60d2c2f52568138a4 /extcap.c
parent212b196beeada17959f7ed014cf48bed5bc73e44 (diff)
Extcap: Clean up our fifo in non-blocking mode.
Use O_NONBLOCK when opening our fifo for cleanup. Ping #18715
Diffstat (limited to 'extcap.c')
-rw-r--r--extcap.c2
1 files changed, 1 insertions, 1 deletions
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);
}