Show full traceback for failures to fork socket child
This commit is contained in:
parent
1991f1ccd7
commit
d02598688a
@ -707,10 +707,12 @@ def main(stdin_fd: int, stdout_fd: int, notify_child_death_fd: int, unix_socket:
|
|||||||
except SocketClosed:
|
except SocketClosed:
|
||||||
if is_zygote:
|
if is_zygote:
|
||||||
remove_socket_child(scq)
|
remove_socket_child(scq)
|
||||||
except OSError as e:
|
except OSError:
|
||||||
if is_zygote:
|
if is_zygote:
|
||||||
remove_socket_child(scq)
|
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:
|
else:
|
||||||
raise
|
raise
|
||||||
if is_zygote and (event & error_events):
|
if is_zygote and (event & error_events):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user