Socket.select interrupted system call because of GC

Marek Janukowicz marek at janukowicz.net
Sat Aug 3 04:35:52 PDT 2013


dennis luehring wrote:

> Am 03.08.2013 08:38, schrieb Marek Janukowicz:
>> void main ()
>> {
>>    writefln( "sa: %d", SA_RESTART );
>>    (new Thread (&serverfunc)).start();
>>    (new Thread (&clientfunc)).start();
>> }
> 
> i have no idea to your main problem but firing threads without any join
> on the threads in your main program seems very wrong to me - its like
> allocating memory and let system kill process handle the zombies

This is of course *not* my entire program (and in fact I made the whole 
snippet up just to showcase the problem). While I understand your concern it 
doesn't really make sense to use this piece of code for anything but 
reproducing the issue at hand.

-- 
Marek Janukowicz


More information about the Digitalmars-d-learn mailing list