Show full traceback for failures to fork socket child

This commit is contained in:
Kovid Goyal 2022-07-07 14:04:10 +05:30
parent 1991f1ccd7
commit d02598688a
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -707,10 +707,12 @@ def handle_socket_launch(fd: int, event: int) -> None:
except SocketClosed:
if is_zygote:
remove_socket_child(scq)
except OSError as e:
except OSError:
if is_zygote:
remove_socket_child(scq)
print_error(f'Failed to fork socket child with error: {e}')
import traceback
tb = traceback.format_exc()
print_error(f'Failed to fork socket child with error: {tb}')
else:
raise
if is_zygote and (event & error_events):