Skip to content

fix(webapp-testing): prevent pipe buffer deadlock and ensure process group cleanup in with_server.py (#1625) - #1664

Open
AbhiPra24 wants to merge 1 commit into
anthropics:mainfrom
AbhiPra24:fix/with-server-process-group-cleanup
Open

fix(webapp-testing): prevent pipe buffer deadlock and ensure process group cleanup in with_server.py (#1625)#1664
AbhiPra24 wants to merge 1 commit into
anthropics:mainfrom
AbhiPra24:fix/with-server-process-group-cleanup

Conversation

@AbhiPra24

Copy link
Copy Markdown

Fixes #1625

In skills/webapp-testing/scripts/with_server.py:

  • Set stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL to prevent pipe buffer exhaustion and deadlock for verbose background servers.
  • Pass start_new_session=True to spawn servers in isolated process groups and kill the entire process group with os.killpg(os.getpgid(process.pid), ...) during cleanup.

cc @98zc5g5jyw-arch for review

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.

Command injection via shell=True in with_server.py --server argument

1 participant