开发者

not kill a process

I开发者_开发技巧 want to write a program that can not close it In other words, they can not kill process .

The solution of the process of closure for less than the other way is to do a good job I have another solution?


Assuming Linux, this is not quite possible from userspace because there are signals like SIGKILL that cannot be ignored or handled.

If you have access to kernel, than you could write a kernel moudule which puts the current process in state TASK_UNINTERRUPTIBLE and thus no one could kill it.


please specify your question in detail.

i think you have facing error on previous activity is onResume();

you have to on resume method for removing this error.

in onResume() method you can call finish(); method for stop activity.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜