linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* String formatting in signal handler
@ 2012-10-20 15:03 Randi Botse
  2012-10-20 20:03 ` Celelibi
  0 siblings, 1 reply; 2+ messages in thread
From: Randi Botse @ 2012-10-20 15:03 UTC (permalink / raw)
  To: linux-c-programming

Hi List,

Almost (maybe all) function from the standard library stdio.h and
string.h are not safely to be called by signal handler. If so, how to
format string in a signal handler?. I want to log some signals which
sent to my program, the contents is for example: time, the signal
number itself, etc, and then write it to a file.

Regards.

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

end of thread, other threads:[~2012-10-20 20:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-20 15:03 String formatting in signal handler Randi Botse
2012-10-20 20:03 ` Celelibi

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).