Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Process.execute on macOS leaves a background thread spinning at 100% #164

@vzsg

Description

@vzsg

In particular, these lines are spinning uncontrollably after the child process exited.

Xcode's memory debugger revealed that the file handle and related objects are kept in memory by the autorelease pool – and explicitly wrapping the Process.execute call with @autoreleasepool resolved the issue.


Process.asyncExecute doesn't seem to have this issue, and I have not tested anything on Linux.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions