[systemd-devel] [PATCH 04/12] Add some plymouth functionality to connect and send, messages

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Fri Jan 30 16:44:49 PST 2015


On Thu, Jan 29, 2015 at 06:42:42PM +0100, Didier Roche wrote:
> Le 28/01/2015 15:44, Zbigniew Jędrzejewski-Szmek a écrit :
> >On Wed, Jan 28, 2015 at 02:22:04PM +0100, Didier Roche wrote:
> >>  bool plymouth_running(void) {
> >>          return access("/run/plymouth/pid", F_OK) >= 0;
> >>  }
> >>+
> >>+#ifdef HAVE_PLYMOUTH
> >>+bool plymouth_connect(void) {
> >Is there a particular reason why this cannot return a normal int code?
> 
> No reason, I changed to 0 for connected, -1 for can't connect.
No, please return a real return code (-ENOMEM on the allocation failure
in this case). -1 is EPERM.

Zbyszek


More information about the systemd-devel mailing list