ladybird/Shell
Nico Weber 37d5e3e0df Shell: Fix fd leak with pipes
Fixes the problem reported in #3073. While trying to write a test
for this, I thought I'd use

    Shell -c 'for i in $(seq 100) { echo $i }' | head -n 1

but that makes the cpu spin at 100% and doesn't terminate even
with this fix here. But at least piping disasm into head now works.
2020-08-10 20:57:38 +02:00
..
Tests Shell: Add support for ARGV (and $*, $#) 2020-08-04 13:40:58 +02:00
AST.cpp Shell: Cancel a running for loop upon receiving any non-SIGINT signal 2020-08-10 20:50:06 +02:00
AST.h Shell: Make Command::redirections a NonnullRefPtrVector 2020-08-07 09:42:12 +02:00
Builtin.cpp Shell: Store ListValue's values in a NonnullRefPtrVector<Value> 2020-08-07 09:33:05 +02:00
CMakeLists.txt Shell: Move printing job status into a Job::print_status() helper 2020-08-06 15:09:49 +02:00
Execution.h Shell: Switch to using Core::EventLoop 2020-05-17 11:58:08 +02:00
Forward.h Shell: Show descriptions about syntax errors 2020-07-05 15:43:14 +02:00
Job.cpp Shell: Move printing job status into a Job::print_status() helper 2020-08-06 15:09:49 +02:00
Job.h Shell: Stop a for loop upon receiving two consecutive interruptions 2020-08-09 21:08:07 +02:00
main.cpp Shell: Stop a for loop upon receiving two consecutive interruptions 2020-08-09 21:08:07 +02:00
Parser.cpp Shell: Make VariableDeclarations::Variable store NonnullRefPtrs 2020-08-07 09:41:04 +02:00
Parser.h Shell: Use NonnullRefPtr to simplify some things in the parser/AST 2020-08-04 18:17:16 +02:00
Shell.cpp Shell: Fix fd leak with pipes 2020-08-10 20:57:38 +02:00
Shell.h Shell: Make redirections without commands apply to all future commands 2020-08-09 21:50:33 +02:00