Skip to content

Conversation

@q0w
Copy link
Contributor

@q0w q0w commented Dec 1, 2021

preexec_func is still None if it is win32

`preexec_func` is still None if it is win32 Signed-off-by: q0w <43147888+q0w@users.noreply.github.com>
Copy link
Contributor

@milas milas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain the issue you're trying to solve here?

preexec_fn is set for non-Windows platforms only:

preexec_func = None
if not constants.IS_WINDOWS_PLATFORM:
def f():
signal.signal(signal.SIGINT, signal.SIG_IGN)
preexec_func = f

@q0w
Copy link
Contributor Author

q0w commented Jul 30, 2022

so if windows it would still be none

preexec_func = None

So you dont need to check it twice

@milas milas self-assigned this Aug 2, 2022
@milas milas added this to the 6.0.0 milestone Aug 2, 2022
@milas milas merged commit ab5e927 into docker:main Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants