X Tutup
Skip to content

bpo-38435: Detect preexec_fn=os.setsid as start_new_session=True#23936

Closed
gpshead wants to merge 1 commit intopython:mainfrom
gpshead:subprocess-preexec_fn-setsid-autodetect
Closed

bpo-38435: Detect preexec_fn=os.setsid as start_new_session=True#23936
gpshead wants to merge 1 commit intopython:mainfrom
gpshead:subprocess-preexec_fn-setsid-autodetect

Conversation

@gpshead
Copy link
Copy Markdown
Member

@gpshead gpshead commented Dec 25, 2020

This is a somewhat common use case, this makes it more reliable.

I'd rather see code that does this be cleaned up. But until it is, this at least makes it more reliable and a little faster.

https://bugs.python.org/issue38435

This is a somewhat common use case, this makes it more reliable.
Copy link
Copy Markdown
Contributor

@izbyshev izbyshev left a comment

Choose a reason for hiding this comment

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

Is your intent to keep this for reducing compat breakage after real preexec_fn support is removed? Otherwise, it seems like having preexec_fn=os.sid perform slower and less reliably would be more helpful in motivating users to migrate to start_new_session :)

@github-actions
Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale Stale PR or inactive for long period of time. label Jan 26, 2021
@gpshead
Copy link
Copy Markdown
Member Author

gpshead commented Dec 18, 2021

this special case won't do a lot as it is one of many. we need to solve the greater problem of providing a way for all actually needed actions to be taken before exec. abandoning this mini idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale Stale PR or inactive for long period of time. type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

X Tutup