packet IO support output fieldstat
This commit is contained in:
@@ -86,7 +86,7 @@ static void *worker_thread(void *arg)
|
||||
}
|
||||
|
||||
stellar_polling_dispatch(mod_mgr);
|
||||
packet_io_polling(pkt_io, thread_id);
|
||||
packet_io_clean(pkt_io, thread_id);
|
||||
if (nr_recv == 0)
|
||||
{
|
||||
packet_io_yield(pkt_io, thread_id);
|
||||
@@ -211,7 +211,7 @@ void stellar_run(struct stellar *st)
|
||||
usleep(1000); // 1ms
|
||||
|
||||
// only available in pcap mode
|
||||
if (packet_io_isbreak(st->pkt_io))
|
||||
if (packet_io_is_done(st->pkt_io))
|
||||
{
|
||||
ATOMIC_SET(&st->need_exit, 1);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user