sudoku shell wait

  1. J

    Shell wait builtin, lost children

    This is probably something that's rehashed every now and then. Pitfalls in shell's handling of asynch processes. Four children are launched. They exit out of order: $ cat k for i in 2 4 3 1 do (sleep $i; exit $i) & done for i in 1 2 3 4 do wait %$i echo $i exit $...