summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/events.py
diff options
context:
space:
mode:
authorKumar Aditya <59607654+kumaraditya303@users.noreply.github.com>2022-11-24 17:34:21 (GMT)
committerGitHub <noreply@github.com>2022-11-24 17:34:21 (GMT)
commit351842b46a7cb3c3f23b200d532cf29e4557ad4b (patch)
treee230af02921504a26b78dcf59e2afb6a4098b091 /Lib/asyncio/events.py
parentb5b3904f05e77f044f158307bc6bdd2bc1b670a2 (diff)
downloadcpython-351842b46a7cb3c3f23b200d532cf29e4557ad4b.zip
cpython-351842b46a7cb3c3f23b200d532cf29e4557ad4b.tar.gz
cpython-351842b46a7cb3c3f23b200d532cf29e4557ad4b.tar.bz2
GH-66285: Revert "fix forking in asyncio" (#99756)
Diffstat (limited to 'Lib/asyncio/events.py')
-rw-r--r--Lib/asyncio/events.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/Lib/asyncio/events.py b/Lib/asyncio/events.py
index 39a0104..a327ba5 100644
--- a/Lib/asyncio/events.py
+++ b/Lib/asyncio/events.py
@@ -17,7 +17,6 @@ import socket
import subprocess
import sys
import threading
-import signal
from . import format_helpers
@@ -666,14 +665,6 @@ class BaseDefaultEventLoopPolicy(AbstractEventLoopPolicy):
def __init__(self):
self._local = self._Local()
- if hasattr(os, 'fork'):
- def on_fork():
- # Reset the loop and wakeupfd in the forked child process.
- self._local = self._Local()
- signal.set_wakeup_fd(-1)
-
- os.register_at_fork(after_in_child=on_fork)
-
def get_event_loop(self):
"""Get the event loop for the current context.