Extcap: Clean up our fifo in non-blocking mode.

Use O_NONBLOCK when opening our fifo for cleanup.

Ping #18715
This commit is contained in:
Gerald Combs 2022-12-12 11:48:58 -08:00
parent 212b196bee
commit 7d20bd0b10
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}