Wednesday 15 April 2015

linux - Does Android support HUP signal generation /handling? -


People:

We all know that in specific Linux systems, such as Ubuntu powered laptops, We connect it remotely, like by SSH, then open the session to run some background jobs. Now, if we actively end the session or disconnect from the Session Network, all jobs / processed launches that were launched by that session will get HUP signal and will be closed by the system by default.

OK, how about Android now? From my perspective, it will not even produce the HP signal in Android, right? Therefore, in Android, in reality no program needed to explicitly handle it or ignore it, because the system will never send it, okay?

Lots in advance.

If you are running the openssh ssh daemon on the Android device, and you start the SSH and a shell shell in it If you do, then it will behave like any other Linux / reception / bash system: your processes will get SIGHUP when you are disconnected.

No comments:

Post a Comment