Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1:Update
systemd.4328
set-session-class-service-for-sysv.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File set-session-class-service-for-sysv.patch of Package systemd.4328
Index: systemd-210/src/core/service.c =================================================================== --- systemd-210.orig/src/core/service.c +++ systemd-210/src/core/service.c @@ -1725,7 +1725,7 @@ static int service_spawn( if (r < 0) goto fail; - our_env = new0(char*, 4); + our_env = new0(char*, 5); if (!our_env) { r = -ENOMEM; goto fail; @@ -1749,6 +1749,14 @@ static int service_spawn( goto fail; } +#ifdef HAVE_SYSV_COMPAT + if (s->is_sysv) + if (asprintf(our_env + n_env++, "XDG_SESSION_CLASS=service") < 0) { + r = -ENOMEM; + goto fail; + } +#endif + final_env = strv_env_merge(2, UNIT(s)->manager->environment, our_env, NULL); if (!final_env) { r = -ENOMEM;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor