a segfault-handler?



Hi,

is it possible to conect a signal handler to a segmentation fault? I would
like to stop child processes (the pipe-processes, to prevent "ghost
processes") and release the hardware devices I use before quitting and
dumping core, since otherwise, the device will report as being busy and you
need a full restart to correct that (and a message that you need to send
bug report could come in handy as well here :-) )...

Ronald

-- 
---------------------------------------------------.
--   .-.    | Ronald Bultje                        |
--   /V\    | Running: Linux 2.4.2 and OpenBSD 2.8 |
--  // \\   | E-mail : rbultje ronald bitfreak net |
-- /(   )\  | WWW    : http://ronald.bitfreak.net/ |
--  ^^-^^   |    *** Warning: Unix Addicted ***    |
---------------------------------------------------'





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]