[procps] Re: [PATCH] improve check if systemd is running

  • From: "Craig Small" <dmarc-noreply@xxxxxxxxxxxxx> ("csmall")
  • To: procps@xxxxxxxxxxxxx
  • Date: Wed, 31 May 2023 20:32:05 +1000

Hi Thorsten,
  Apologies for the delay, that patch is in the repository now. That looks
like a better way to check if systemd is running.

 - Craig


On Wed, 31 May 2023 at 01:28, Thorsten Kukuk <dmarc-noreply@xxxxxxxxxxxxx>
wrote:


Hi,

What about this patch? I haven't seen any comment on it?

Thanks,
   Thorsten

On Fri, Apr 14, Thorsten Kukuk wrote:

library: use sd_booted() if systemd is in use

sd_get_sessions() will not return ENOENT as error, as this only means
that there is no session, not that systemd is not used. Use the
recommended sd_booted() function for this.

Signed-off-by: Thorsten Kukuk <kukuk@xxxxxxxx>

--
Thorsten Kukuk, Distinguished Engineer, Senior Architect, Future
Technologies
SUSE Software Solutions Germany GmbH, Frankenstraße 146, 90461 Nuernberg,
Germany
Managing Director: Ivo Totev, Andrew Myers, Andrew McDonald, Martje
Boudien Moerman
(HRB 36809, AG Nürnberg)

Other related posts: