Re: [HACKERS] Parallel restore checks wrong thread return value?

2011-02-26 Thread Magnus Hagander
On Sat, Feb 26, 2011 at 16:51, Magnus Hagander wrote: > in spawn_restore: > > >        child = (HANDLE) _beginthreadex(NULL, 0, (void *) parallel_restore, >                                                                        args, > 0, NULL); >        if (child == 0) > > > But from my reading

[HACKERS] Parallel restore checks wrong thread return value?

2011-02-26 Thread Magnus Hagander
in spawn_restore: child = (HANDLE) _beginthreadex(NULL, 0, (void *) parallel_restore, args, 0, NULL); if (child == 0) But from my reading of the docs, _beginthreadex() returns -1 on error, not 0. Bug, or a