(child, killSignal, reason)
| 753 | } |
| 754 | |
| 755 | function abortChildProcess(child, killSignal, reason) { |
| 756 | if (!child) |
| 757 | return; |
| 758 | try { |
| 759 | if (child.kill(killSignal)) { |
| 760 | child.emit('error', new AbortError(undefined, { cause: reason })); |
| 761 | } |
| 762 | } catch (err) { |
| 763 | child.emit('error', err); |
| 764 | } |
| 765 | } |
| 766 | |
| 767 | /** |
| 768 | * Spawns a new process using the given `file`. |
no test coverage detected
searching dependent graphs…