use of non-signal-safe functions in signal handlers

Bug #999487 reported by Tuomo Tanskanen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
upstart
New
Undecided
Unassigned

Bug Description

In signal handlers, there are calls to nih_warn(), nih_info() and nih_fatal(), which in turn invoke logger_kmsg(), which calls fopen(), fprintf() and fclose(), which are not signal safe.

Revision history for this message
Tuomo Tanskanen (tuomotanskanen) wrote :

Also, exit() is used which is not signal safe and has potential atexit() issues, _exit() should be used instead.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.