这是indexloc提供的服务,不要输入任何密码
Skip to content

Question: What is the mechanism of killing processes in Termux #2015

@mitnk

Description

@mitnk

I was running crond with Termux in another phone work very well. I recently switched to a new phone, the battery optimizer may have issues, and causing the crond process killed randomly.

image

the pss here is: ps ax | sed 's|/data.*/||'

Note that the crond is killed, but the shell process (pid 2717) is not.

I want to understand how these things happen in the background. Where could I find more clues on how this crond is killed. I've locked this app, and acquired the wake lock. I've set the OS NOT to do any battery optimization on app Termux and Termux-API.

image
image

$ termux-info
Application version:
0.110
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://termux.org/packages/ stable main
# game-repo (sources.list.d/game.list)
deb https://grimler.se/game-packages-24 games stable
# science-repo (sources.list.d/science.list)
deb https://grimler.se/science-packages-24 science stable
Updatable packages:
All packages up to date
Android version:
11
Kernel build information:
Linux localhost 5.4.61-qgki-01148-g376d4ad #1 SMP PREEMPT Sat Apr 17 03:38:45 CST 2021 aarch64 Android
Device manufacturer:
OnePlus
Device model:
LE2110

I've tried v0.108, same issue in this phone. I know the main issue must be due to this phone. But I want to know if there is anything we can do in termux side. (e.g. Does the OS have the ability of killing only one of processes in Termux? etc)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions