These two sites _do_ match the definition of pid_is_valid(); they don't
provide any special handling for the invalid PID value 0. (They're used
by dbus methods, so the PID value 0 is handled with reference to the dbus
client creds, outside of these functions).
assert(m);
- if (pid < 1)
+ if (!pid_is_valid(pid))
return -EINVAL;
#if 0 /// elogind does not support systemd units, but its own session system
assert(m);
assert(user);
- if (pid < 1)
+ if (!pid_is_valid(pid))
return -EINVAL;
#if 0 /// elogind does not support systemd units, but its own session system