From 479b4de6f19d9fcf1818447474fc00cd6754f406 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 11 May 2022 08:12:21 +0200 Subject: tcpdump: Make loop monitor cooperative This helps a bit if the fgetc() is non-blocking. Update #4650. --- freebsd/contrib/tcpdump/tcpdump.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'freebsd') diff --git a/freebsd/contrib/tcpdump/tcpdump.c b/freebsd/contrib/tcpdump/tcpdump.c index 3b68ed51..5f3cc672 100644 --- a/freebsd/contrib/tcpdump/tcpdump.c +++ b/freebsd/contrib/tcpdump/tcpdump.c @@ -143,6 +143,7 @@ The Regents of the University of California. All rights reserved.\n"; #include #include #include +#include #include #include #define setpriority(a, b, c) @@ -1247,6 +1248,8 @@ pcap_loop_monitor(rtems_task_argument arg) pcap_breakloop(pd); break; } + + sched_yield(); } rtems_task_delete(RTEMS_SELF); -- cgit v1.2.3