Added a call to close(s) at the end of the message sending loop
in main function.
Signed-off-by: Zhu Jun <zhujun2@cmss.chinamobile.com>
---
samples/connector/ucon.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/samples/connector/ucon.c b/samples/connector/ucon.c
index fa17f864200e..4934a95622d0 100644
--- a/samples/connector/ucon.c
+++ b/samples/connector/ucon.c
@@ -181,6 +181,7 @@ int main(int argc, char *argv[])
ulog("%d messages have been sent to %08x.%08x.\n", i, data->id.idx, data->id.val);
}
+ close(s);
return 0;
}
--
2.17.1