summaryrefslogtreecommitdiff
path: root/multipathd/main.c
diff options
context:
space:
mode:
authorChristophe Varoqui <christophe.varoqui@free.fr>2008-09-30 23:39:27 +0200
committerChristophe Varoqui <christophe.varoqui@free.fr>2008-09-30 23:39:27 +0200
commitc1cbbb91cb3ef9fe40a1f63d65edf381fad82b0b (patch)
tree0d6d9b74cdb69d86c026f8d9018165c4da920c9d /multipathd/main.c
parent27ec49eca021f1cc85e66d55509f1e051a820bd4 (diff)
downloadmultipath-tools-c1cbbb91cb3ef9fe40a1f63d65edf381fad82b0b.tar.gz
multipath-tools-c1cbbb91cb3ef9fe40a1f63d65edf381fad82b0b.tar.bz2
multipath-tools-c1cbbb91cb3ef9fe40a1f63d65edf381fad82b0b.zip
[multipathd] add "quit" cli command
"exit" or "quit" may be more straight-forward than CTRL-D Put dummy cli commands in place for auto-generated help, even if we exit from the socket client code before sending the command packet to the daemon.
Diffstat (limited to 'multipathd/main.c')
-rw-r--r--multipathd/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/multipathd/main.c b/multipathd/main.c
index 84fb5c4..7879758 100644
--- a/multipathd/main.c
+++ b/multipathd/main.c
@@ -714,6 +714,7 @@ uxlsnrloop (void * ap)
set_handler_callback(RESUME+MAP, cli_resume);
set_handler_callback(REINSTATE+PATH, cli_reinstate);
set_handler_callback(FAIL+PATH, cli_fail);
+ set_handler_callback(QUIT, cli_quit);
uxsock_listen(&uxsock_trigger, ap);