You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Node.js & Bun, spawned subprocesses by default use socketpair instead of pipe for stdin. This makes it easier to prevent read() & write() calls from blocking without setting a file descriptor to O_NONBLOCK (i.e. without observably impacting the other process which may or may not handle EAGAIN correctly)
This usually works great, but it unfortunately seems to break using ag in a subprocess in Bun.
Is this check missing S_ISSOCK? or possibly isatty(0)?
In Node.js & Bun, spawned subprocesses by default use
socketpair
instead ofpipe
for stdin. This makes it easier to prevent read() & write() calls from blocking without setting a file descriptor toO_NONBLOCK
(i.e. without observably impacting the other process which may or may not handleEAGAIN
correctly)This usually works great, but it unfortunately seems to break using
ag
in a subprocess in Bun.Is this check missing
S_ISSOCK
? or possiblyisatty(0)
?the_silver_searcher/src/options.c
Line 360 in a61f178
Related oven-sh/bun#9510
The text was updated successfully, but these errors were encountered: