unity-api-bugs team mailing list archive
-
unity-api-bugs team
-
Mailing list archive
-
Message #05379
[Bug 1358753] Re: Applications can escape from lifecycle
I was asked, so I thought I'd put the comment here as well. Here's how
you avoid the application lifecycle:
int main (int argc, char * argv[]) {
pid_d pid = 0;
if ((pid = fork()) != 0) {
waitpid(pid);
return 0;
|
setpgid(0,0);
/* You're free!!!!! */
}
The parent will get stopped and started based on application lifecycle
states but anything in the rest of the main function will be unaffected.
--
You received this bug notification because you are a member of Unity API
bugs, which is subscribed to Ubuntu Application Launcher.
https://bugs.launchpad.net/bugs/1358753
Title:
Applications can escape from lifecycle
Status in Ubuntu Application Launcher:
In Progress
Bug description:
Currently in the releases applications can easily escape for the
lifecycle by creating a new process group. To avoid this we need to
use cgroups in the application jobs. Currently that is blocked on:
https://bugs.launchpad.net/ubuntu-app-launch/+bug/1357252
After that lands then we can land a branch to fix this bug. Bug is
mostly for tracking to ensure we don't miss this going into RTM.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-app-launch/+bug/1358753/+subscriptions
References