Skip to content

Conversation

@lucarin91
Copy link
Contributor

@lucarin91 lucarin91 commented Nov 17, 2025

Motivation

Some ADB operations didn't call .wait, which creates a zombie process in mac/linux

Change description

Add the missing .Wait function 🥲.

Additional Notes

The number of processes used by AppLab is continuously increasing due to a missing wait() call on the os resources.
This causes the following error when the maximum number of open processes is reached:

# zsh: fork failed: resource temporarily unavailable
This PR add a wait() to the ReadWriteCloser, so the os processes can be cleaned up.

Reviewer checklist

  • PR addresses a single concern.
  • PR title and description are properly filled.
  • Changes will be merged in main.
  • Changes are covered by tests.
  • Logging is meaningful in case of troubleshooting.

@lucarin91 lucarin91 marked this pull request as ready for review November 17, 2025 14:36
@lucarin91 lucarin91 changed the title fix(pkg/board): wait for zombie process in adb fix(pkg/board): consule zombie process in adb Nov 17, 2025
@lucarin91 lucarin91 changed the title fix(pkg/board): consule zombie process in adb fix(pkg/board): consume zombie process in adb Nov 17, 2025
@per1234 per1234 added the bug Something isn't working label Nov 18, 2025
@lucarin91 lucarin91 merged commit 03379d0 into arduino:main Nov 18, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants