Ok, ok, sorry.
I found a solution ;-)
installHandler sigPIPE Ignore Nothing
That seems to be enough.
uno
> I'm using sockets in my project.
> After hours of searching I realized that the error occured while
> trying to write to a handle of a socket-connection which is dead.
> The program which wants to write just dies without any complain.
> I have surrounded The write-command (hPutStrLn) with a try clause with
> no effect. It seem to be not anexception.
> That has The effect that evrytime a client in my application dies an
> unnaturally death the server dies too.
> Is it possible to catch this termination?
> I am using ghc-4.06 on a Suse-Linux-6.4-Machine
> uno