-
-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Elogind changes #687
base: master
Are you sure you want to change the base?
Elogind changes #687
Conversation
We don't implement cgroups at this moment, and elogind can work without it. Still, it seems to check /proc/[pid]/cgroup, so stub it with reasonable values.
@@ -178,6 178,15 @@ int main() { | |||
}else assert(dbus != -1); | |||
} | |||
|
|||
// Launch elogind if it's available. | |||
if(!access("/usr/lib/elogind/elogind", X_OK)) { | |||
sleep(5); // Wait for dbus to be fully started, this is a hack. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to either get InitWare working soon™ or figure out what heuristic we can use for detecting dbus-daemon activation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. I should retry that soon
@@ -178,6 178,15 @@ int main() { | |||
}else assert(dbus != -1); | |||
} | |||
|
|||
// Launch elogind if it's available. | |||
if(!access("/usr/lib/elogind/elogind", X_OK)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There doesn't seem to be an elogind port upstream or PRed in yet?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's correct, but there's no reason to not add it now with the port coming hopefully soon. It's just a matter of cleaning it up.
This PR adds an auto launch of elogind if it's installed, and adds some required items (mostly workarounds) on the Managarm side. As a bonus, logging was improved for not implemented file operations.