Hi!
I'm trying to understand if there's a way to properly unlock
a sd_bus_wait() blocking call, as i need the thread where the call is
performed to leave.
The cycle is something like:

while (!quit) {
         r = sd_bus_process(signal_bus, NULL);
         if (r > 0) {
               continue;
         }
         r = sd_bus_wait(signal_bus, (uint64_t) -1);
         if (r < 0) {
                break;
         }
   }
close_bus();
pthread_exit(NULL);

The quit status is changed elsewhere.
Is there a way to achieve this thing?

Thank you very much for your time!
Federico
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to