I don't think this portable with windows. We could we have this in the `#ifndef _WIN32` block, since we don't have to worry about `fork` being used on windows.