handle sizeof(pid_t) != sizeof(void*) gracefully