All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH 1/4] client: special case daemon interface for non-interactive
@ 2021-11-02 21:15 Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2021-11-02 21:15 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 536 bytes --]

Hi James,

On 11/2/21 2:57 PM, James Prestwood wrote:
> In non-interactive mode, when a dbus method call returns the process
> exits. This is true for all methods except agent requests since e.g.
> Connect() call automatically requests credentials and the client must
> wait for that to return before exiting. The new daemon interface must
> also be treated in the same way and not exit.
> ---
>   client/dbus-proxy.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
> 

All applied, thanks.

Regards,
-Denis

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 1/4] client: special case daemon interface for non-interactive
@ 2021-11-02 19:57 James Prestwood
  0 siblings, 0 replies; 2+ messages in thread
From: James Prestwood @ 2021-11-02 19:57 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 936 bytes --]

In non-interactive mode, when a dbus method call returns the process
exits. This is true for all methods except agent requests since e.g.
Connect() call automatically requests credentials and the client must
wait for that to return before exiting. The new daemon interface must
also be treated in the same way and not exit.
---
 client/dbus-proxy.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/client/dbus-proxy.c b/client/dbus-proxy.c
index ab9fb5a5..0373a3df 100644
--- a/client/dbus-proxy.c
+++ b/client/dbus-proxy.c
@@ -315,7 +315,8 @@ static void proxy_callback(struct l_dbus_message *message, void *user_data)
 	}
 
 	proxy = callback_data->user_data;
-	if (!strcmp(proxy->type->interface, IWD_AGENT_MANAGER_INTERFACE))
+	if (!strcmp(proxy->type->interface, IWD_AGENT_MANAGER_INTERFACE) ||
+			!strcmp(proxy->type->interface, IWD_DAEMON_INTERFACE))
 		return;
 
 quit:
-- 
2.31.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-02 21:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-02 21:15 [PATCH 1/4] client: special case daemon interface for non-interactive Denis Kenzior
  -- strict thread matches above, loose matches on Subject: below --
2021-11-02 19:57 James Prestwood

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.