> If you use fork(), it drops all file descriptors, and creates new > ones - may be then loss the __file__...? > I don't think this is the case. He wrote that the process runs for weeks without problems, and code using __file__ is being executed all the time.