This patch add timeout support for listen command.

If timeout parameter is not provided, listen command will exit after
30 seconds. This is not compatable with previous version, that is,
listen will blcok infinitely if timeout parameter is not
provided. Since it seems no user is using 'ubus listen' command in
openwrt code base, I think this may be acceptable, if not, I can
change the code so listen command will only exit if timeout
parameter is provided.

Zhao, Gang (2):
  cli: static keyword tweak
  cli: add timeout support for listen command

 cli.c | 29 ++++++++++++++++++++++-------
 1 file changed, 22 insertions(+), 7 deletions(-)

-- 
2.7.2
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to