GC deadlocks on linux

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Feb 18 14:52:08 PST 2015


On Wed, 18 Feb 2015 21:21:10 +0000, Byron Heads wrote:

> My guess is this is going to be related to forking, going to see if I
> can make a test case.

it's better to avoid forking at all. it's *very* hard to do forking 
right, it's almost impossible to do it right even in single-threaded app, 
and it's impossible to do it right in multithreaded app. `fork()` is a 
can full of worms, it may surprise you even on seemingly simple code.

i suggest you to just drop forking and use shell script instead. you can 
lost alot of time trying to force your forked code to work right, and 
then it will break again on any move (or even when moon will change it's 
phase).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20150218/ac0d16c7/attachment-0001.sig>


More information about the Digitalmars-d-learn mailing list