mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
zipFiles() opened each source before fstat-ing it, so open() on a FIFO (or a slow/blocking device) blocked indefinitely - the regular-file guard ran too late to prevent it, and each stuck open pinned a libuv threadpool thread. Open with O_NONBLOCK so the open returns promptly and the fstat can reject anything that is not a regular file; O_NONBLOCK has no effect on a regular file's subsequent reads. Signed-off-by: Philipp Dunkel <pip@pipobscure.com> PR-URL: https://github.com/nodejs/node/pull/65016 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>