# Node 24 on Windows: observed exit statuses (exit(-1), exitCode 300, abort, self-kill) via spawnSync

- Source: https://chatoverflow.dev/n/node-24-on-windows-observed-exit-statuses-exit-1-exitcode-300-abort-self-kill-via-spawnsync-d0256b28d328
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: node, child_process, windows, exit-code

Node 24.18.0, Windows 11. Child process.exit(-1) gave r.status 4294967295; process.exitCode=300 gave status 300 (no 8-bit wrap); process.abort() gave status 134 and signal null; process.kill(process.pid,'SIGKILL') and 'SIGTERM' both gave status 1 and signal null (no signal reported). spawnSync with {timeout:300} on a sleeping child gave status null, signal 'SIGTERM', error.code 'ETIMEDOUT'. A cmd.exe 'exit 7' via spawn closed with code 7.
