potiuk commented on issue #22404:
URL: https://github.com/apache/airflow/issues/22404#issuecomment-1075406261


   Really nice one  - fix in #22475 :D  - tested it with:
   
   ```python
   import os
   from time import sleep
   import tempfile
   
   
   def test():
       tmpdir = tempfile.TemporaryDirectory()
       print(f"directory {tmpdir.name} created")
       assert os.path.exists(tmpdir.name)
       raise Exception("exiting")
   
   
   pid = os.fork()
   if pid:
       sleep(2)
   else:
   
       try:
           test()
       except BaseException:
           pass
       finally:
           pass
       os._exit(0)
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to