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
If you run while $true { echo a } (or any other builtin in the loop) you'll be stuck in an endless loop.
It looks as though builtin commands can't be interrupted.
The text was updated successfully, but these errors were encountered:
There is a channel that exposes interrupts, but since goroutines cannot be interrupted from outside, we need to insert selects on this channel to ensure that interrupts are respected. For instance, the esleep commands respect interrupts; you can verify this by running esleep 10 and ^C it.
Making sure that each builtin respects interrupts can be a bit tricky, but there is one low-hanging fruit: before the execution of each pipeline, check this channel and if there are interrupt signals, abort the execution.
Hi,
If you run
while $true { echo a }
(or any other builtin in the loop) you'll be stuck in an endless loop.It looks as though builtin commands can't be interrupted.
The text was updated successfully, but these errors were encountered: