From db1b973e7d0bfefcc7e9e58d8de14bb7cb540687 Mon Sep 17 00:00:00 2001 From: zhushiqshi Date: Tue, 5 Nov 2024 19:14:01 +0800 Subject: [PATCH] apps/rexecd: add more trace info when failed Signed-off-by: zhushiqi --- netutils/rexecd/rexecd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/netutils/rexecd/rexecd.c b/netutils/rexecd/rexecd.c index 8726eda85d..431ea26c48 100644 --- a/netutils/rexecd/rexecd.c +++ b/netutils/rexecd/rexecd.c @@ -30,6 +30,7 @@ #include #include #include +#include /**************************************************************************** * Pre-processor Definitions @@ -280,6 +281,7 @@ int main(int argc, FAR char **argv) attr_out: pthread_attr_destroy(&attr); err_out: + syslog(LOG_ERR, "rexecd failed ret:%d errno:%d\n", ret, errno); close(serv); return ret; }