]> git.ipfire.org Git - thirdparty/lxc.git/commit
lxc-monitord: exit when got a quit command 1662/head
author0x0916 <w@laoqinren.net>
Sat, 1 Jul 2017 06:04:14 +0000 (14:04 +0800)
committer0x0916 <w@laoqinren.net>
Sat, 1 Jul 2017 06:06:00 +0000 (14:06 +0800)
commit267bc7eda8443c3a985e5b82289ab1ed533f2e16
treeed689813d154283a1a2f7378d86f360a302f6bce
parent86ccab2e9b8f8c1f91734c8595d397bf37450684
lxc-monitord: exit when got a quit command

lxc-monitor has an option to tell lxc-monitord to quit.

```
~/lxc (master) # lxc-monitor --help
lxc-monitor monitors the state of the NAME container

Options :
  -n, --name=NAME   NAME of the container
                    NAME may be a regular expression
  -Q, --quit        tell lxc-monitord to quit
```
But it does not work. This patch fix that.

Signed-off-by: 0x0916 <w@laoqinren.net>
src/lxc/lxc_monitord.c