Evan Nemerson
Evan Nemerson
My understanding is that CreateProcess is like to fork+exec, not just fork. The documentation seems to confirm, but I really don't know Windows; maybe there is a way to use...
Hm, maybe I'm looking for the wrong keywords, but I don't see anything in the [MSDN docs](https://msdn.microsoft.com/en-us/library/windows/desktop/ms682425%28v=vs.85%29.aspx) about that. Can you be more specific?
AFAICT the best solution available is to use some undocumented APIs from NT (ZwCreateProcess or NtCreateProcess, I don't know which is preferred). The [best thread](https://groups.google.com/forum/#!topic/microsoft.public.win32.programmer.kernel/ejtHCZmdyaI) I can find on the...
Nice. Seeing a full example instead of just a description helps. It looks like that project is GPLv2. I could rewrite the code, but @s-u, would you mind licensing us...
Of course. Does winternl.h not exist for msvc? Based on [line 16](https://github.com/jonclayden/multicore/blob/master/src/forknt.c#L16) I assumed windows had it but mingw didn't…
@s-u, thanks, I really appreciate the license change! I like that non-binding request, I'll have to think about adding that to µnit… I'll try to play around with it a...
@vitasam, it has been a while since I used valgrind (pretty much since AddressSanitizer came out), but IIRC you can pass `--trace-children=yes` to have it check child processes, or you...
Maybe I'm misunderstanding the point of this report, but it seems like µnit already does what you're talking about. You've elided the portion which shows the expanded value. The full...
Hm, this seems like an issue with TDM-GCC (which I'd never heard of until today)… `fileno` is part of the Windows API, as well as POSIX.1-2001, so it probably should...
Does TDM-GCC define `_WIN32`? If not, does it claim to support POSIX 2001? FWIW, you can disable the code which requires `fileno` by defining `MUNIT_NO_BUFFER` and `MUNIT_NO_FORK`, though you will...