如何避免进程被杀死 [英] how to Avoid process being killed

查看:408
本文介绍了如何避免进程被杀死的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从Windows Service运行exes(所有C#控制台应用程序),但是从service plz运行时却被杀死,这有助于排除故障

I am running exes(All C# console apps) from windows service but those are being killed when running from service plz help in troubleshooting

推荐答案

谁正在停止您的程式? -它们是否因异常而崩溃?
请记住,在Windows服务下运行的程序对用户设置等的访问权限不同.
Who is stopping your programs? - Are they crashing with exception ?
Remember that programs running under a Windows Service has not the same access to user settings etc.


据我所知,没有什么可以阻止应用程序进程终止由具有足够特权和进程句柄的用户组成.

此外,即使可以破坏系统的稳定性或完全破坏系统,也可以使用Sysinternals实用程序PsKill来无条件地杀死任何本地或远程进程,请参见
To best of my knowledge, nothing can prevent an application process from killing by a user having sufficient privileges and the process handle.

Moreover, one can use Sysinternals utility PsKill which can kill any local or remote process unconditionally, even if it can destabilize or completely screw up the system, see http://technet.microsoft.com/en-us/sysinternals/bb896683[^].

Why doing that?

—SA


这篇关于如何避免进程被杀死的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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