Skip to content

Commit

Permalink
apps/rexecd: add more trace info when failed
Browse files Browse the repository at this point in the history
Signed-off-by: zhushiqi <[email protected]>
  • Loading branch information
zhushiqshi committed Nov 11, 2024
1 parent 92584dd commit db1b973
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions netutils/rexecd/rexecd.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <stdio.h>
#include <unistd.h>
#include <poll.h>
#include <syslog.h>

/****************************************************************************
* Pre-processor Definitions
Expand Down Expand Up @@ -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;
}

0 comments on commit db1b973

Please sign in to comment.