This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: call fchdir if subprocess.Popen(cwd=integer|fileobject)
Type: enhancement Stage:
Components: Library (Lib) Versions: Python 3.5
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: socketpair, vstinner
Priority: normal Keywords:

Created on 2013-06-07 19:40 by socketpair, last changed 2022-04-11 14:57 by admin.

Messages (3)
msg190770 - (view) Author: Марк Коренберг (socketpair) * Date: 2013-06-07 19:40
Today, subprocess allow to change directory only by using its name. What if I have only file descriptor referring to that dir?

It will be nice if such feture will be implemented. Now, I use preexc_fn to call os.fchdir() by hand.

We should handle close_fds *AFTER* calling fchdir() :)
msg228591 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2014-10-05 17:10
mmarkk we're sorry about the delay in getting back to you.  Who is best placed to reply to this enhancement request, the only name on the experts list is inactive?
msg255592 - (view) Author: Марк Коренберг (socketpair) * Date: 2015-11-29 20:21
Do not understand what should be done in order to fix that...

It will be nice if I can create pull request by myself
History
Date User Action Args
2022-04-11 14:57:46adminsetgithub: 62361
2019-02-24 22:13:56BreamoreBoysetnosy: - BreamoreBoy
2015-11-29 20:21:50socketpairsetmessages: + msg255592
2014-10-07 13:27:36vstinnersetnosy: + vstinner
2014-10-05 17:10:27BreamoreBoysetnosy: + BreamoreBoy

messages: + msg228591
versions: - Python 3.3, Python 3.4
2013-06-07 19:40:42socketpaircreate