However, I also wonder if it would be a problem for upstart to wait() on the original process anyway in the cases of "expect daemon" and "expect fork". Is there any reason why this would break anything? It would seem closer to Sys V's behaviour to me.
cjwatson suggested that I consider "expect stop" like this openssh patch: http:// anonscm. debian. org/loggerhead/ pkg-ssh/ openssh/ trunk/revision/ 3578
However, I also wonder if it would be a problem for upstart to wait() on the original process anyway in the cases of "expect daemon" and "expect fork". Is there any reason why this would break anything? It would seem closer to Sys V's behaviour to me.