Skip to content

exec version#2

Closed
czervenka wants to merge 7 commits into
kvbik:masterfrom
czervenka:master
Closed

exec version#2
czervenka wants to merge 7 commits into
kvbik:masterfrom
czervenka:master

Conversation

@czervenka

Copy link
Copy Markdown
Contributor

I have replaced system() call by python's exec() in templates/bin/python.py. This version of script si simpler, nicer and does work with programs like daemon tools, eclipse debugger, etc. There is no need for parsing arguments and also no extra useless process hanging in memory.

Tests were ok.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

There is alreadyos.path.pathsep for this purpose (tested on Linux yet, but should work on Win and Mac too).

@kvbik

kvbik commented Sep 26, 2011

Copy link
Copy Markdown
Owner

wonderful! thank you @czervenka

i will run the test suite on windows and some older pythons and let you know. i'd really like to merge this stuff!

didn't know about os.execvp. really like it ;)

@czervenka

Copy link
Copy Markdown
Contributor Author

I realized that Win needs special quoting for arguments with spaces. All tests passed on WindowsXP/python2.7 now.

kvbik pushed a commit that referenced this pull request Feb 6, 2012
kvbik pushed a commit that referenced this pull request Feb 6, 2012
@kvbik

kvbik commented Feb 9, 2012

Copy link
Copy Markdown
Owner

hey, so os.execvp stuff is in master branch. any volunteers for testing?:)

@czervenka

Copy link
Copy Markdown
Contributor Author

We have tried this version in our preproduction environment. I can confirm that there are no problems running daemontools rvirtualenv gunicorn with this "exec" version.

@kvbik

kvbik commented Feb 15, 2012

Copy link
Copy Markdown
Owner

@czervenka that's wonderfull news. thank you. i will have a quick look at #5 and do the release as soon as possible.

@kvbik

kvbik commented Feb 15, 2012

Copy link
Copy Markdown
Owner

but i believe this is ok.

@kvbik kvbik closed this Feb 15, 2012
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