[Haskell-cafe] fcntl locks, executeFile and threaded runtime
Donn Cave
donn at avvanta.com
Tue Oct 29 20:37:10 UTC 2013
Quoth diego souza,
...
> The only thing that happens during an 'execve' that comes to mind is
> that it kills all threads but the current one. And I do see this
> happening on the trace output.
>
> But I guess this should make no difference (unless it seems it does).
It could, if 1) with Linux "clone" threads, the file lock is a property
of only the thread that acquired the lock, and 2) the thread that survives
execve is not that one.
Donn
More information about the Haskell-Cafe
mailing list