fix bug in multiprocessing for posix system