DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] Printfs in Signal Handler
@ 2020-12-01  3:39 prateekag
  2020-12-01  9:24 ` Thomas Monjalon
  0 siblings, 1 reply; 6+ messages in thread
From: prateekag @ 2020-12-01  3:39 UTC (permalink / raw)
  To: dev; +Cc: thomas


printf is not signal safe and may lead to deadlock if kept in signal handler 
and
signal comes in two quick succession. It will not lead to incorrect behavior 
and it is a highly unlikely event. And an expert may understand why this 
issue happened. Is it worthwhile to change these printfs to unix I/O write 
call?

Prateek Agarwal

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-12-04  9:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-01  3:39 [dpdk-dev] Printfs in Signal Handler prateekag
2020-12-01  9:24 ` Thomas Monjalon
2020-12-02 20:41   ` Thomas Monjalon
2020-12-03  0:02     ` prateekag
2020-12-04  9:20     ` prateekag
2020-12-04  9:50       ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).