aboutsummaryrefslogtreecommitdiff
path: root/cli/mmcli-manager.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2011-12-09 17:58:20 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-03-15 14:14:33 +0100
commit62469445101babdff53d238e602d7e988dbaa0cb (patch)
treea829194c8618a15607714482851234de975ab945 /cli/mmcli-manager.c
parentec8da67921c648dbe2e3b82c2392f7196229c914 (diff)
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.
Diffstat (limited to 'cli/mmcli-manager.c')
-rw-r--r--cli/mmcli-manager.c3
1 files changed, 3 insertions, 0 deletions
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;
}