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
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to