Francis Montagnac <Francis.Montagnac@sophia.inria.fr> wrote:
> Without having setsid as bash buitins one has to rely on the real
> executable to detach itself from the tty.
No, you can use an external wrapper command. If you use Linux, the
util-linux package has the "setsid" command. Also, my idtools package
has the "setstate" command: <URL:http://multivac.cwru.edu./idtools/>.
> exec_with_timeout () {
...
This code works for me without setpgid.
paul