Skip to content

Conversation

@picnixz
Copy link
Member

@picnixzpicnixz commented May 16, 2025

@gpsheadgpshead added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels May 16, 2025
@bedevere-app
Copy link

When you're done making the requested changes, leave the comment: I have made the requested changes; please review again.

@picnixzpicnixzforce-pushed the fix/multiprocessing/temp-dir-132124 branch from 3233fdc to 84f7020CompareMay 17, 2025 10:18
@picnixz
Copy link
MemberAuthor

I have made the requested changes; please review again.

@bedevere-app
Copy link

Thanks for making the requested changes!

@gpshead: please review the changes made to this pull request.

@bedevere-appbedevere-appbot requested a review from gpsheadMay 17, 2025 10:19
@thesamesam
Copy link
Contributor

Thank you! It works (and the change seems to have the semantics I'd expect).


__all__ = [
'sub_debug', 'debug', 'info', 'sub_warning', 'get_logger',
'sub_debug', 'debug', 'info', 'sub_warning', 'warn', 'get_logger',
Copy link
Member

Choose a reason for hiding this comment

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

note to self: I'm going to leave 'warn' out of __all__ and rename the function to _warn as a modification to our 3.13 backport as it'd technically be an API change in a bugfix release otherwise.

@gpsheadgpshead merged commit 1a07a01 into python:mainMay 21, 2025
44 of 47 checks passed
@miss-islington-app
Copy link

Thanks @picnixz for the PR, and @gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 21, 2025
pythonGH-134085) * ensure that we can create AF_UNIX socket files * emit a warning if system-wide temporary directory is used (cherry picked from commit 1a07a01) Co-authored-by: Bénédikt Tran <[email protected]>
@bedevere-app
Copy link

GH-134447 is a backport of this pull request to the 3.14 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 21, 2025
pythonGH-134085) * ensure that we can create AF_UNIX socket files * emit a warning if system-wide temporary directory is used (cherry picked from commit 1a07a01) Co-authored-by: Bénédikt Tran <[email protected]>
@bedevere-appbedevere-appbot removed the needs backport to 3.14 bugs and security fixes label May 21, 2025
@bedevere-app
Copy link

GH-134448 is a backport of this pull request to the 3.13 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.13 bugs and security fixes label May 21, 2025
gpshead pushed a commit that referenced this pull request May 21, 2025
…es (GH-134085) (#134447) gh-132124: improve safety nets for creating AF_UNIX socket files (GH-134085) * ensure that we can create AF_UNIX socket files * emit a warning if system-wide temporary directory is used (cherry picked from commit 1a07a01) Co-authored-by: Bénédikt Tran <[email protected]>
@picnixzpicnixz deleted the fix/multiprocessing/temp-dir-132124 branch May 23, 2025 12:22
lkollar pushed a commit to lkollar/cpython that referenced this pull request May 26, 2025
pythonGH-134085) * ensure that we can create AF_UNIX socket files * emit a warning if system-wide temporary directory is used
Pranjal095 pushed a commit to Pranjal095/cpython that referenced this pull request Jul 12, 2025
pythonGH-134085) * ensure that we can create AF_UNIX socket files * emit a warning if system-wide temporary directory is used
gpshead added a commit that referenced this pull request Aug 4, 2025
…es (GH-134085) (#134448) * gh-132124: improve safety nets for creating AF_UNIX socket files (GH-134085) * ensure that we can create AF_UNIX socket files * emit a warning if system-wide temporary directory is used (cherry picked from commit 1a07a01) Co-authored-by: Bénédikt Tran <[email protected]> * rename warn -> _warn for the 3.13.x backport * Update Misc/NEWS.d/next/Library/2025-05-16-12-40-37.gh-issue-132124.T_5Odx.rst --------- Co-authored-by: Bénédikt Tran <[email protected]> Co-authored-by: Gregory P. Smith <[email protected]>
taegyunkim pushed a commit to taegyunkim/cpython that referenced this pull request Aug 4, 2025
pythonGH-134085) * ensure that we can create AF_UNIX socket files * emit a warning if system-wide temporary directory is used
# [2]: https://man7.org/linux/man-pages/man7/unix.7.html.

if sys.platform == 'linux':
_SUN_PATH_MAX = 108
Copy link

@zmedicozmedicoOct 29, 2025

Choose a reason for hiding this comment

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

This _SUN_PATH_MAX = 108 value for Linux includes a null terminator, resulting in #140734.

Sign up for freeto 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.

4 participants

@picnixz@thesamesam@gpshead@zmedico