Skip to content

Ensure uname subprocess is cleaned up#593

Merged
djs55 merged 1 commit intomoby:masterfrom
tmoschou:592-fix-zombied-uname-child-process
Aug 22, 2022
Merged

Ensure uname subprocess is cleaned up#593
djs55 merged 1 commit intomoby:masterfrom
tmoschou:592-fix-zombied-uname-child-process

Conversation

@tmoschou
Copy link
Copy Markdown
Contributor

Adds a fix to the uname command / subprocess spawned which was not cleaned up / reaped appropriately on Darwin.
The result was a zombie process / resource leak that lingered in the process table.

Fixes #592

@tmoschou
Copy link
Copy Markdown
Contributor Author

Copy link
Copy Markdown
Collaborator

@djs55 djs55 left a comment

Choose a reason for hiding this comment

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

Thanks, the change looks fine to me. I'll investigate the CI.

I'm slightly surprised that this code ended up in the final binary. I think it is only supposed to be used at build-time. Maybe it needs to move out of src/bin?

Fixes moby#592

Signed-off-by: Terry Moschou <5567550+tmoschou@users.noreply.github.com>
@djs55 djs55 force-pushed the 592-fix-zombied-uname-child-process branch from 8167090 to 827788c Compare August 22, 2022 11:11
@djs55
Copy link
Copy Markdown
Collaborator

djs55 commented Aug 22, 2022

I've taken the liberty of force-pushing a rebase after the recent CI improvements.

@djs55
Copy link
Copy Markdown
Collaborator

djs55 commented Aug 22, 2022

OK, CI is a bit greener :)

@djs55 djs55 merged commit 4276f60 into moby:master Aug 22, 2022
@tmoschou tmoschou deleted the 592-fix-zombied-uname-child-process branch August 14, 2023 07:47
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.

Resource leak spawning uname subprocess call on Darwin

2 participants