If for some reason a service is started before StartServiceJob runs, we
will end up blocking forever.
Details
Details
- Reviewers
apol - Group Reviewers
Plasma - Commits
- R120:854b64fc130b: [plasma-session] Avoid hypothetical race condition starting a service
Logged in
Diff Detail
Diff Detail
- Repository
- R120 Plasma Workspace
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
startkde/plasma-session/startup.cpp | ||
---|---|---|
429 | Could probably use an m_service.isEmpty() check since it will still needlessly do a NameHasOwner call |
startkde/plasma-session/startup.cpp | ||
---|---|---|
429 | All usages of this class (which is just the 1 case to start ksmserver!) have a name passed. Without a name it wouldn't ever finish. |