Bug in touchForeignPtr?

Keean Schupke k.schupke at imperial.ac.uk
Mon Nov 22 13:27:41 EST 2004

Semaphores (SYSV style) are not freed automatically. Currenly I am using
C's at_exit funtion (which is even called on a signal)... Perhaps this 
is the
way to deal with foreign resources... bracket notation and at_exit to clean
up on signals?


Sven Panne wrote:

> Keean Schupke wrote:
>> Nope there are some unix resources that c exit routines do not free
>> like semaphores.
> Which library/OS calls do you mean exactly? I always thought that files
> are the only resources surviving process termination.
> Cheers,
>    S.

More information about the Glasgow-haskell-users mailing list