async-process icon indicating copy to clipboard operation
async-process copied to clipboard

Windows compatibility: Conditionally toggles Process#spawn

Open gmenel opened this issue 2 years ago • 0 comments

When launching processes on Windows, I received a failure, ArgumentError: wrong exec option symbol: pgroup
Upon inspection of Process#spawn, I noticed that depending on the OS you either pass pgroup: or new_pgroup:. This changes toggles based on Gem.win_platform? which should be stable as it's part of core.

Types of Changes

  • Bug fix.

Contribution

Thanks for your time.

gmenel avatar Dec 26 '23 04:12 gmenel