1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

dtterm: Change the default log host to localhost.

To check the log function, add -DLOG_USAGE to the Imakefile then build the
dtterm. There are a logger in the util directory, run it to receive log
messages.
This commit is contained in:
Liang Chang 2021-04-17 01:55:43 +08:00
parent 5afe94ea3e
commit fbe2b20bc6

View file

@ -46,8 +46,8 @@
#include <netinet/in.h>
#include <netdb.h>
#define LOG_HOST "hpcvusj.cv.hp.com"
#define LOG_ADDR "15.0.209.35"
#define LOG_HOST "localhost"
#define LOG_ADDR "127.0.0.1"
#define LOG_PORT "4444"
#define WAIT_INTERVAL 5
#define RETRIES 5
@ -301,7 +301,11 @@ doLog(int noFork, char *msg)
}
if (!noFork) {
#ifdef _NFILE
for (i1 = 0; i1 < _NFILE; i1++) {
#else
for (i1 = 0; i1 < sysconf(_SC_OPEN_MAX); i1++) {
#endif
if (i1 != s) {
(void) close(i1);
}