chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bus: implement server mode, and anonymous authentication
[elogind.git]
/
src
/
libsystemd-bus
/
test-bus-chat.c
diff --git
a/src/libsystemd-bus/test-bus-chat.c
b/src/libsystemd-bus/test-bus-chat.c
index e124b247d1d1e23c5092e32676089ba95ac8d939..906a7e646ce7f8ed8834e6bc7543da0d07a19a91 100644
(file)
--- a/
src/libsystemd-bus/test-bus-chat.c
+++ b/
src/libsystemd-bus/test-bus-chat.c
@@
-564,9
+564,15
@@
int main(int argc, char *argv[]) {
q = pthread_join(c1, &p);
if (q != 0)
return EXIT_FAILURE;
+ if (PTR_TO_INT(p) < 0)
+ return EXIT_FAILURE;
+
q = pthread_join(c2, &p);
if (q != 0)
return EXIT_FAILURE;
+ if (PTR_TO_INT(p) < 0)
+ return EXIT_FAILURE;
+
if (r < 0)
return EXIT_FAILURE;