* [Bug 1194] l3fwd-cat: calling unsafe functions from signal handler
@ 2023-03-20 17:08 bugzilla
0 siblings, 0 replies; only message in thread
From: bugzilla @ 2023-03-20 17:08 UTC (permalink / raw)
To: dev
[-- Attachment #1: Type: text/plain, Size: 998 bytes --]
https://bugs.dpdk.org/show_bug.cgi?id=1194
Bug ID: 1194
Summary: l3fwd-cat: calling unsafe functions from signal
handler
Product: DPDK
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: examples
Assignee: dev@dpdk.org
Reporter: stephen@networkplumber.org
Target Milestone: ---
The handling of SIGINT and SIGTERM in the l2fwd-cat example is unsafe and
non-portable. The signal handler could be called by any thread at any time.
The current method (copy/paste from testpmd?) is to call cat_exit() in the
signal handler. This may race with other threads and cause problems.
The better solution is to set a flag in signal handler and then do the shutdown
aft er the main loop exits.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #2: Type: text/html, Size: 2860 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-20 17:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-20 17:08 [Bug 1194] l3fwd-cat: calling unsafe functions from signal handler bugzilla
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.