]> granicus.if.org Git - procps-ng/commit
library: avoid any --with-systemd conflict, <PIDS> api
authorJim Warner <james.warner@comcast.net>
Mon, 16 May 2016 11:06:06 +0000 (06:06 -0500)
committerCraig Small <csmall@dropbear.xyz>
Mon, 16 May 2016 11:36:54 +0000 (21:36 +1000)
commit0580a7b4c67d0297629d37281b4f690894429626
treed23317d9ae6929476aa6fa758b7c45e99d9b0bb4
parentc1a3b457554eea79c97dd9c3481a2fd14d93e420
library: avoid any --with-systemd conflict, <PIDS> api

A potential conflict arises should should some program
attempt to access systemd data using our library built
without that support (--disable-systemd). And while we
could argue that all callers should check against NULL
string pointers, it's not expected of libprocps users.

So we'll guarantee 'em valid string consisting of "?".

Reference(s):
http://www.freelists.org/post/procps/systemd-binary-vs-library

Signed-off-by: Jim Warner <james.warner@comcast.net>
proc/readproc.c