termux / termux-app

Termux - a terminal emulator application for Android OS extendible by variety of packages.
https://f-droid.org/en/packages/com.termux
Other
35.84k stars 3.77k forks source link

Not a real bug, but how to suspend a particular process ? #3538

Closed freebrowser1 closed 1 year ago

freebrowser1 commented 1 year ago

Problem description

When using a Linux desktop under Termux (I use Andronix), I want to suspend the desktop, e.g. when not in use during night, without killing or closing it. The reason is that some foreground processes like a Ubuntu web browser like Firefox or LibreOffice still eat CPU time in the background. I tried using killall -SIGSTOP proot but to no avail. Normally that is a command to freeze Linux processes. Is there a way that Termux can freeze processes within its environment ?

Steps to reproduce the behavior.

See above.

What is the expected behavior?

Allow freezing processes.

System information

twaik commented 1 year ago

https://stackoverflow.com/questions/392022/whats-the-best-way-to-send-a-signal-to-all-members-of-a-process-group