I think it\'s related to the parent process creating new subprocess and does not have tty. Can anyone explain the detail under the hood? i.e. the related working model of ba
One of the possible options would be not having access to the tty.
Under the hood:
/dev/tty for read-write access. I partially quoted the comments from bash source code.
[edit]
As per additional request of the question author:
http://tiswww.case.edu/php/chet/bash/bashtop.html Here you can find bash itself.
If you can read the C code, get the source tarball, inside it you will find job.c - that one will explain you more "under the hood" stuff. :)