async-safe Questions

4

Solved

I want to print a number into log or to a terminal using write (or any async-safe function) inside a signal handler. I would prefer not to use buffered I/O. Is there an easy and recommended way to...
Bract asked 28/1, 2013 at 23:13

4

Solved

Non syscall's wrappers but something like snprintf(), dprintf()
Chieftain asked 6/1, 2010 at 13:29

2

Solved

I am just figuring out whether I can call a non-async-safe function in a signal handler. Quotes from Linux man page signal(7): If a signal interrupts the execution of an unsafe function, and han...
Janijania asked 24/8, 2015 at 15:14
1

© 2022 - 2024 — McMap. All rights reserved.