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:
parent
5afe94ea3e
commit
fbe2b20bc6
1 changed files with 6 additions and 2 deletions
|
@ -46,8 +46,8 @@
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
|
|
||||||
#define LOG_HOST "hpcvusj.cv.hp.com"
|
#define LOG_HOST "localhost"
|
||||||
#define LOG_ADDR "15.0.209.35"
|
#define LOG_ADDR "127.0.0.1"
|
||||||
#define LOG_PORT "4444"
|
#define LOG_PORT "4444"
|
||||||
#define WAIT_INTERVAL 5
|
#define WAIT_INTERVAL 5
|
||||||
#define RETRIES 5
|
#define RETRIES 5
|
||||||
|
@ -301,7 +301,11 @@ doLog(int noFork, char *msg)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!noFork) {
|
if (!noFork) {
|
||||||
|
#ifdef _NFILE
|
||||||
for (i1 = 0; i1 < _NFILE; i1++) {
|
for (i1 = 0; i1 < _NFILE; i1++) {
|
||||||
|
#else
|
||||||
|
for (i1 = 0; i1 < sysconf(_SC_OPEN_MAX); i1++) {
|
||||||
|
#endif
|
||||||
if (i1 != s) {
|
if (i1 != s) {
|
||||||
(void) close(i1);
|
(void) close(i1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue