From 62469445101babdff53d238e602d7e988dbaa0cb Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Fri, 9 Dec 2011 17:58:20 +0100 Subject: cli: allow option groups to force async/sync operations Some operations are clearly asynchronous (e.g. monitoring modem state), while others are clearly synchronous (e.g. printing modem info). So just allow option groups to force the operation to be async or sync based on the detected action. --- cli/mmcli-manager.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cli/mmcli-manager.c') diff --git a/cli/mmcli-manager.c b/cli/mmcli-manager.c index ee0bff8c..de6886fe 100644 --- a/cli/mmcli-manager.c +++ b/cli/mmcli-manager.c @@ -98,6 +98,9 @@ mmcli_manager_options_enabled (void) exit (EXIT_FAILURE); } + if (monitor_modems_flag) + mmcli_force_async_operation (); + return !!n_actions; } -- cgit v1.2.3-70-g09d2