请问:已知进程ID,使用何类可以将该进程终止??

weixin_38087180 2019-09-19 02:08:19
QProcess类好像没提供这样的函数
...全文
18 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
weixin_38104003 2019-09-19
  • 打赏
  • 举报
回复
qt没有提供这样的api , 你直接用系统提供的方法吧
weixin_38131452 2019-09-19
  • 打赏
  • 举报
回复
如果是windows下OpenProcess()TerminateProcess()
weixin_38150931 2019-09-19
  • 打赏
  • 举报
回复
unix kill -9 NO
weixin_38151024 2019-09-19
  • 打赏
  • 举报
回复
SIGNALS       The signals listed below may be available for use with kill.  When known constant, numbers       and default behavior are shown.       Name     Num   Action    Description       0          0   n/a       exit code indicates if a signal may be sent       ALRM      14   exit       HUP        1   exit       INT        2   exit       KILL       9   exit      cannot be blocked       PIPE      13   exit       POLL           exit       PROF           exit       TERM      15   exit       USR1           exit       USR2           exit       VTALRM         exit       STKFLT         exit      might not be implemented       PWR            ignore    might exit on some systems       WINCH          ignore       CHLD           ignore       URG            ignore       TSTP           stop      might interact with the shell       TTIN           stop      might interact with the shell       TTOU           stop      might interact with the shell       STOP           stop      cannot be blocked       CONT           restart   continue if stopped, otherwise ignore       ABRT       6   core       FPE        8   core       ILL        4   core       QUIT       3   core       SEGV      11   core       TRAP       5   core       SYS            core      might not be implemented       EMT            core      might not be implemented       BUS            core      core dump might fail       XCPU           core      core dump might fail       XFSZ           core      core dump might fail

433

社区成员

发帖
与我相关
我的任务
社区描述
其他技术讨论专区
其他 技术论坛(原bbs)
社区管理员
  • 其他技术讨论专区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧