Skip to content

Use preexec_func always#2920

Merged
milas merged 1 commit into
docker:mainfrom
93578237:patch-1
Aug 2, 2022
Merged

Use preexec_func always#2920
milas merged 1 commit into
docker:mainfrom
93578237:patch-1

Conversation

@93578237
Copy link
Copy Markdown
Contributor

@93578237 93578237 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
Copy Markdown
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

@93578237
Copy link
Copy Markdown
Contributor Author

93578237 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants