c - Re-propagate a Caught Signal in Linux -


i trying use sigwait() sigsegv , other signals , (says writing timestamp file). then, program behave if signal never caught (e.g. coredump generated when sigsegv happens -- assuming system configured coredump).

i read through couple manpages, , don't see obvious way so.

any suggestion?

thanks in advance!

you can register signal handler won't cause program crash. once receive signal, you'll enter signal handler, , after executing signal handler (write file said), you'll reenter program left off.

if want core dump, can use linux core(5) command , create core dump in signal handler without ending process.

http://www.alexonlinux.com/signal-handling-in-linux#signal_masks


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -