开发者

not kill a process

开发者 https://www.devze.com 2023-03-14 23:23 出处:网络
I开发者_开发技巧 want to write a program that can not close it In other words, they can not kill 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

精彩评论

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

关注公众号