5 ms·
What do programs on linux do when they get the sigstop? Especially complex programs like browsers?
by dtx1 5y ago
What do programs on linux do when they get the sigstop? Especially complex programs like browsers?
- anthk 5y agoThey stop completely and the window looks frozen.
- vbezhenar 5y agoI don't see how is it different from laptop being suspended. Any program should be ready for that scenario.
- harvie 5y agoIn case there is some stateful network connection (eg. TCP, SSH, HTTP, IMAP, ...) it will probably timeout sooner or later. Then it depends on how well the app can detect it and reconnect once resumed again.
- LinuxBender 5y agoAnd that is probably mostly fine since HTTP is or is supposed to be stateless. IMAP by design can reconnect and one can work around SSH by using MOSH [1] in those cases which is stateless and great for lossy and/or mobile networks. [1] - https://mosh.org/ https://mosh.org/
- gpvos 5y agoThey do nothing anymore. The OS will not give them any CPU time until they are resumed. No network communication, no redrawing of windows. If they started subprocesses, those might still run; I don't know the details about that.