mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2026-02-01 17:26:34 +00:00
Abort the watcher if stdin is closed to avoid zombie processes (#4997)
* Abort the watcher if stdin is closed to avoid zombie processes * Apply suggestions from code review
This commit is contained in:
parent
4daa86a293
commit
b280378c33
@ -784,6 +784,9 @@ async function build() {
|
||||
}
|
||||
|
||||
if (shouldWatch) {
|
||||
/* Abort the watcher if stdin is closed to avoid zombie processes */
|
||||
process.stdin.on('end', () => process.exit(0))
|
||||
process.stdin.resume()
|
||||
startWatcher()
|
||||
} else {
|
||||
buildOnce()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user