Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
Signed-off-by: jason yang <jasonyangshadow@gmail.com>
  • Loading branch information
JasonYangShadow committed May 15, 2024
1 parent b48dc4d commit 2e33a72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pkg/cgroups/manager_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ func newManager(resources *specs.LinuxResources, group string, systemd bool) (ma
if lcConfig.Systemd && !lcsystemd.IsRunningSystemd() {
// DBUS_SESSION_BUS_ADDRESS is set
if val, ok := os.LookupEnv("DBUS_SESSION_BUS_ADDRESS"); val != "" && ok {
sylog.Warningf("Systemd is unavailabe currently, environment variable `DBUS_SESSION_BUS_ADDRESS` is set, will unset it")
sylog.Infof("Disabling cgroups because systemd is unavailable")
if err := os.Unsetenv("DBUS_SESSION_BUS_ADDRESS"); err != nil {
return nil, fmt.Errorf("while unset `DBUS_SESSION_BUS_ADDRESS`, err: %w", err)
}
Expand Down

0 comments on commit 2e33a72

Please sign in to comment.