From: Gary Wright Date: 2009-07-14T09:43:31+09:00 Subject: Re: Process.fork weirdness On Jul 13, 2009, at 1:18 PM, Joel VanderWerf wrote: > Huh, I never knew that. That's dangerous if the parent process is > multithreaded, isn't it? Because even if the forking thread flushes > all open files, other threads can keep filling buffers before the > fork happens. It is probably a bad idea to have multiple threads writing to a shared file descriptor without proper synchronization. With proper synchronization you should be able to safely flush and fork.