Making a commit for the issue with the hanging PTY_SHELL (just run
the example script around 10 tmies, it will happen eventually ...  :D)