kill -15和File - > Quit一样吗?


5

我想退出一个过程,但没有强制退出它。这可能来自终端吗?

Answers:


8

kill 在Unix级别上行动,目标进程可以随意忽略任何信号 kill -9。根据您正在查看的流程的内部结构, kill -15 与'文件 - >退出'不同。

作为替代方案,你可以做类似的事情 osascript -e 'tell application "Safari" to quit'

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.