exit(0);
} else {
waitPid(pid);
- Api::cleanupApp(app.getAppId().c_str(), tmpUser.getUid());
+ Api::cleanupApp(app.getAppId().c_str(), tmpUser.getUid(), pid);
}
}
synchPipe.wait();
std::string appBindPath = std::string("/var/run/user/") + std::to_string(tmpUser.getUid())
- + "/apps/" + app.generateAppLabel();
+ + "/apps/" + app.generateAppLabel() + "/" + std::to_string(pid);
std::string appProcPath = std::string("/proc/") + std::to_string(pid) + "/ns/mnt";
std::string launcherProcPath = std::string("/proc/") + std::to_string(getpid()) + "/ns/mnt";
synchPipe.post();
waitPid(pid);
- Api::cleanupApp(app.getAppId().c_str(), tmpUser.getUid());
+ Api::cleanupApp(app.getAppId().c_str(), tmpUser.getUid(), pid);
}
}
synchPipe.post();
waitPid(pid);
- Api::cleanupApp(app.getAppId().c_str(), tmpUser.getUid());
+ Api::cleanupApp(app.getAppId().c_str(), tmpUser.getUid(), pid);
}
}
synchPipe.post();
waitPid(pid);
- Api::cleanupApp(app.getAppId().c_str(), tmpUser.getUid());
+ Api::cleanupApp(app.getAppId().c_str(), tmpUser.getUid(), pid);
}
}