Does linux kill background processes if we close the terminal from which it has started?

后端 未结 4 812
傲寒
傲寒 2021-01-30 17:59

I have an embedded system, on which I do telnet and then I run an application in background:

./app_name &

Now if I close my te

4条回答
  •  感动是毒
    2021-01-30 18:26

    AFAIK in both cases the process should be killed. In order to avoid this you have to issue a nohup like the following:

    > nohup ./my_app &
    

    This way your process will continue executing. Probably the telnet part is due to a BUG similar to this one:

    https://bugzilla.redhat.com/show_bug.cgi?id=89653

提交回复
热议问题