Skip to content
Snippets Groups Projects
Commit c2d1b12d authored by Ken Zhu's avatar Ken Zhu
Browse files

rstp: Fix daemon exit unexpected


When using rstpctl command to stop the rstp service, the daemon will
stop unexpectedly.
it exits because the rcvmsg returns error that no buffer space available, 
but this is not a critical issue, let it ignore this and continue.

Change-Id: Ia20978a9dd846c24a6fef9604346f1356f44adc3
Signed-off-by: default avatarKen Zhu <guigenz@codeaurora.org>
parent 615ea841
No related branches found
No related tags found
No related merge requests found
diff -Nur a/brmon.c rstp-2011-10-11/brmon.c
--- a/brmon.c 2019-05-17 11:33:57.554922414 -0700
+++ rstp-2011-10-11/brmon.c 2019-05-17 11:34:12.734922796 -0700
@@ -164,7 +164,6 @@
{
if (rtnl_listen(&rth, dump_msg, stdout) < 0) {
fprintf(stderr, "Error on bridge monitoring socket\n");
- exit(-1);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment