Re: a segfault-handler?



>>>>> In article <20010410113352 A2832 tux bitfreak net>, Ronald Bultje <rbultje ronald bitfreak net> writes:

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

Normally, if your system is clean, it should release every resources
and file handlers automatically at the end of your application, no
matter how it ended.


Wolfgang




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