Skip to content

child_process: fix bad abortSignal leak

The abort signal validation happens after spawn is called internally, so if a bad AbortSignal param is passed and the validation doesn't pass the spawned process still exists.

I just moved the validation to execute before the internal spawn call.

Merge request reports

Loading