NetworkManager/clients/cli
Lubomir Rintel 9bf0b32cd1 cli/connections: avoid using synchronous get_secrets()
With --ask it might call back to nmcli's agent, causing a deadlock
while the client is waiting for the response. Let's give the client
a chance to service the agent requests while waiting:

  $ nmcli --ask --show-secrets c show 'Oracle HQ'
  <hang>

This is probably still rather suboptimal and inefficient, since we
still serialize the calls and block on response. However, if we submit
multiple calls to GetSecrets, the daemon would start authorizing the
first one and fail the other ones immediately before the authorization
succeeds.

This could perhaps be addressed in the daemon, but let's settle for a
fix that's compatible with the current daemon for now.
2018-02-13 15:03:49 +01:00
..
agent.c nmcli/agent: fix handling of polkit agent failure 2018-01-24 09:53:38 +01:00
agent.h cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01:00
common.c clients/cli: use a nicer password prompt 2017-12-18 14:47:37 +01:00
common.h build: move nm-client-utils.c to libnmc-base.a 2017-10-16 17:25:35 +02:00
connections.c cli/connections: avoid using synchronous get_secrets() 2018-02-13 15:03:49 +01:00
connections.h cli: move and rename TermColor and TermFormat 2017-04-05 16:53:06 +02:00
devices.c libnm-core: move detection of UTF-8 capable terminals to clients/ 2017-12-18 14:47:37 +01:00
devices.h cli: move and rename TermColor and TermFormat 2017-04-05 16:53:06 +02:00
general.c clients: add tc qdisc support 2017-12-11 10:52:23 +01:00
general.h cli: output a short summary of devices when called without arguments 2016-07-19 14:29:05 +02:00
meson.build build/meson: use variables for ldflags and linker-script 2018-01-11 12:46:01 +01:00
nmcli-completion cli: make nmcli do its own command completion 2017-02-13 16:32:15 +01:00
nmcli.c nmcli: fix signal handling 2018-01-24 09:53:38 +01:00
nmcli.h clients: drop redundant #include "NetworkManager.h" 2018-01-08 12:38:54 +01:00
polkit-agent.c cli: move NmcMetaGenericInfo to "utils.h" 2017-04-05 16:53:06 +02:00
polkit-agent.h cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01:00
settings.c cli: drop nmc_strsplit_set() 2017-12-12 15:19:43 +01:00
settings.h cli: move setting creation to meta data 2017-04-12 14:12:20 +02:00
utils.c all: drop trailing spaces 2018-02-07 13:32:04 +01:00
utils.h cli: drop nmc_strsplit_set() 2017-12-12 15:19:43 +01:00