The signal to use when killing the process after a timeout, when the AbortSignal is aborted, or when the process goes over the maxBuffer limit.
property killSignal | Bun module | Bun BuildDocsReferenceGuidesBlogDiscord/Bun/Spawn/SpawnSyncOptions/killSignalPkillSignal BuildDocsReferenceGuidesBlogDiscord /Bun/Spawn/SpawnSyncOptions/killSignalPkillSignal Spawn.SpawnSyncOptions.killSignalkillSignal?: string | number
Search the reference...
/
property
// Kill the process with SIGKILL after 5 seconds
const subprocess = Bun.spawn({
cmd: ["sleep", "10"],
timeout: 5000,
killSignal: "SIGKILL",
});
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →property killSignal | Bun module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- The signal to use when killing the process after a timeout, when the AbortSignal is aborted,
or when the process goes over the `maxBuffer` limit.