achimnol / aiotools

Idiomatic asyncio utilties
https://aiotools.readthedocs.io
MIT License
153 stars 11 forks source link

fix: Explicitly attach the event loop to the child watcher #50

Closed achimnol closed 2 years ago

achimnol commented 2 years ago

This has been causing applications using aiotools with pidfd support to crash with RuntimeError: asyncio.get_child_watcher() is not activated, subprocess support is not installed. when they try to spawn subprocesses.

codecov[bot] commented 2 years ago

Codecov Report

Merging #50 (0efde7b) into main (0f619cd) will increase coverage by 0.03%. The diff coverage is 85.71%.

@@            Coverage Diff             @@
##             main      #50      +/-   ##
==========================================
+ Coverage   78.50%   78.53%   +0.03%     
==========================================
  Files          16       16              
  Lines        1326     1328       +2     
==========================================
+ Hits         1041     1043       +2     
  Misses        285      285              
Impacted Files Coverage Δ
src/aiotools/server.py 50.00% <85.71%> (+0.34%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 0f619cd...0efde7b. Read the comment docs.