Hi, On Thu, 2015-10-15 at 15:41 +1100, Craig McQueen wrote: > I agree, it would be best if connmanctl exits after all the method > calls have completed. I'd be happy to do a patch in principle, however > I'm new to this D-Bus stuff and unfamiliar with the connman codebase, > so at this point I'm not sure what is an architecturally elegant way > to fix this. E.g., would it a counter which increments for each method > call, and decrements when its response is received
Yes, that should work. > (and if so, does it need locks to be thread safe)? This is entirely single threaded using a main loop. No locking structures needed. > Or, is there some existing D-Bus code that already provides such > functionality, e.g. returning true when there are no method calls > waiting for a response? Currently not. Looks like the 'config' command has the same problem here. But that is a different "bug"... Cheers, Patrik _______________________________________________ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman