David Herrmann
fcb6bf43a4
logind: change to -1+errno
...
Set errno and return -1 in public API calls like all other weston code
does. Most systemd+dbus calls return negative error-codes instead of -1
and setting errno. Thus, we need to explicitly set errno before returning.
Also note that we must set errno _after_ the cleanup path. Calling
functions like close() in the cleanup path might overwrite errno (which is
not what we want). So protect errno until the final return -1;
2013-11-21 16:28:08 -08:00
..
2013-10-30 23:46:08 -07:00
2013-11-15 16:23:17 -08:00
2013-11-19 11:49:28 -08:00
2013-11-19 11:49:25 -08:00
2013-08-08 13:46:13 -07:00
2013-08-08 13:46:13 -07:00
2013-06-05 01:16:34 -04:00
2013-08-16 10:56:00 -07:00
2013-08-08 13:46:13 -07:00
2013-11-19 13:25:10 -08:00
2013-10-25 12:17:51 -07:00
2013-10-22 12:24:56 -07:00
2013-10-22 12:24:56 -07:00
2013-10-25 12:17:51 -07:00
2013-11-19 11:44:51 -08:00
2013-11-07 16:34:59 -08:00
2013-11-19 12:57:24 -08:00
2013-11-20 16:59:00 -08:00
2013-11-15 16:17:51 -08:00
2013-10-21 16:07:10 -07:00
2013-10-21 16:07:10 -07:00
2013-09-24 16:22:19 -07:00
2013-11-12 16:20:19 -08:00
2013-10-21 13:45:03 -07:00
2013-11-12 16:20:34 -08:00
2013-11-12 16:20:34 -08:00
2013-11-19 13:11:25 -08:00
2013-11-07 16:34:13 -08:00
2013-11-20 16:59:00 -08:00
2013-10-30 16:27:16 -07:00
2013-10-21 16:23:58 -07:00
2013-06-05 01:16:34 -04:00
2012-05-10 14:11:44 -04:00
2013-08-06 19:27:04 -07:00
2013-11-21 16:28:08 -08:00
2013-10-21 16:23:58 -07:00
2013-11-15 16:23:17 -08:00
2013-10-25 12:21:51 -07:00
2013-11-13 16:32:58 -08:00
2013-08-16 10:56:00 -07:00
2013-10-25 11:05:45 -07:00
2013-11-13 16:32:58 -08:00
2013-05-22 17:05:45 -04:00
2013-11-13 16:32:58 -08:00
2013-11-19 11:52:12 -08:00
2013-10-22 13:34:11 -07:00
2013-10-22 13:34:11 -07:00
2013-10-28 14:44:06 -07:00
2013-10-21 16:07:45 -07:00
2013-10-21 13:47:05 -07:00
2013-10-10 16:50:18 -07:00
2013-08-30 13:44:40 -07:00
2013-09-23 10:42:19 -07:00
2013-09-16 21:40:31 -07:00
2013-09-16 21:40:31 -07:00
2013-10-01 10:42:55 -07:00
2013-10-30 16:27:16 -07:00
2013-09-18 11:14:14 -07:00
2013-06-04 00:14:04 -04:00
2013-11-15 16:17:51 -08:00