42shpimanmls / 42sh

Shell project at 42
3 stars 0 forks source link

Pipeline waits for last child only #155

Closed lsimonne closed 7 years ago

lsimonne commented 7 years ago

fix cat /dev/urandom | head -c 10 => only wait for last child then kill all other children with SIGINT (+ necessary simple handling of ctrl-c)

=> which do you think is best? any other idea?

M5oul commented 7 years ago

Ctrl + C works. I can't test cat /dev/urandom. My terminal crash.

lsimonne commented 7 years ago

oh, why's that? base64 /dev/urandom too ?

(keep in mind that ctrl-c still needs to be implemented in the editor to delete the current line and display the prompt again)

M5oul commented 7 years ago

It even crash on other shells. It's not a problem. Just to say that I won't be able to review this one.

lsimonne commented 7 years ago

yes, I get that it's not a code problem, just wondering if there was a way around it!

M5oul commented 7 years ago

ah. Yep, base64 works.