[lwatch-cvs] files/src lwatch.c,1.16,1.17
Brought to you by:
arturcz
|
From: <ar...@us...> - 2003-04-04 18:29:19
|
Update of /cvsroot/lwatch/files/src
In directory sc8-pr-cvs1:/tmp/cvs-serv27716
Modified Files:
lwatch.c
Log Message:
- erm, remove crap
Index: lwatch.c
===================================================================
RCS file: /cvsroot/lwatch/files/src/lwatch.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** lwatch.c 4 Apr 2003 15:11:42 -0000 1.16
--- lwatch.c 4 Apr 2003 18:29:14 -0000 1.17
***************
*** 34,37 ****
--- 34,38 ----
#include <stdlib.h>
#include <string.h>
+ #include <syslog.h>
#include <unistd.h>
***************
*** 56,59 ****
--- 57,62 ----
checkeof=0;
+ openlog("lwatch",LOG_NDELAY|LOG_PID,LOG_SYSLOG);
+ syslog(LOG_INFO,"started");
parse_options(argc,argv);
parse_config();
***************
*** 79,85 ****
#endif
} else {
- printf("raz\n");
stdout=freopen(lw_conf.out_file,"w",stdout);
- printf("dwa\n");
/* io_check(fd=open(lw_conf.out_file,O_WRONLY),lw_conf.out_file); */
#ifdef DEBUG
--- 82,86 ----
***************
*** 136,139 ****
--- 137,141 ----
free_parser();
free_settings();
+ closelog();
exit(0);
}
|