nohup如何工作? [英] How does nohup work?

查看:74
本文介绍了nohup如何工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用nohup运行程序时,幕后将执行什么操作?

What is performed behind the scenes when a program runs with nohup?

父进程的PID是否已更改?

Is the PID of the parent process being changed?

谢谢.

编辑:我了解到nohup(并取消了)会导致SIGHUP如果父进程接收到它,则不会发送给该进程.这是否意味着它等同于处理SIGHUP(并实际上忽略了它)?

EDIT: I understood that nohup (and disown) causes that SIGHUP is not sent to the process if the parent process receives it. Does it mean that it is equivalent to handling SIGHUP (and actually ignore it)?

推荐答案

使用消息来源卢克!

(添加了额外的字符以使新的答案长度规则保持满意.)

(Extra characters added to keep the new answer length rules happy.)

这篇关于nohup如何工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆