Skip to content

Commit 1f5ec0b

Browse files
zhushiqshixiaoxiang781216
authored andcommitted
apps/rexecd: add more trace info when failed
Signed-off-by: zhushiqi <zhushiqshi@xiaomi.com>
1 parent de8080d commit 1f5ec0b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

netutils/rexecd/rexecd.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include <stdio.h>
3131
#include <unistd.h>
3232
#include <poll.h>
33+
#include <syslog.h>
3334

3435
/****************************************************************************
3536
* Pre-processor Definitions
@@ -280,6 +281,7 @@ int main(int argc, FAR char **argv)
280281
attr_out:
281282
pthread_attr_destroy(&attr);
282283
err_out:
284+
syslog(LOG_ERR, "rexecd failed ret:%d errno:%d\n", ret, errno);
283285
close(serv);
284286
return ret;
285287
}

0 commit comments

Comments
 (0)