mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-11 07:25:19 +00:00
apps/rexecd: add more trace info when failed
Signed-off-by: zhushiqi <zhushiqshi@xiaomi.com>
This commit is contained in:
parent
de8080dbff
commit
1f5ec0bfe7
1 changed files with 2 additions and 0 deletions
|
|
@ -30,6 +30,7 @@
|
|||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <poll.h>
|
||||
#include <syslog.h>
|
||||
|
||||
/****************************************************************************
|
||||
* 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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue