aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-03-10 15:17:29 +0000
committerBill Nottingham <notting@redhat.com>1999-03-10 15:17:29 +0000
commitb3259ecec959eb9915e4dca72fc9fc231049503b (patch)
treefb96747efd89bc2d379d96d28326b3cb73c8c844 /src
parent0ed4e41097e3f77513c790146a2662f8bc6bc87e (diff)
downloadinitscripts-b3259ecec959eb9915e4dca72fc9fc231049503b.tar
initscripts-b3259ecec959eb9915e4dca72fc9fc231049503b.tar.gz
initscripts-b3259ecec959eb9915e4dca72fc9fc231049503b.tar.bz2
initscripts-b3259ecec959eb9915e4dca72fc9fc231049503b.tar.xz
initscripts-b3259ecec959eb9915e4dca72fc9fc231049503b.zip
ack. Must remove debugging code.
Diffstat (limited to 'src')
-rw-r--r--src/minilogd.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/minilogd.c b/src/minilogd.c
index d15b8d9a..f1b620bf 100644
--- a/src/minilogd.c
+++ b/src/minilogd.c
@@ -64,10 +64,7 @@ void runDaemon(int sock) {
char *message;
struct stat s1,s2;
struct pollfd pfds;
- FILE *foo;
- foo=fopen("./foo","a");
-
daemon(0,-1);
/* try not to leave stale sockets lying around */
/* Hopefully, we won't actually get any of these */
@@ -93,7 +90,6 @@ void runDaemon(int sock) {
cleanup(-1);
}
if ( (x>0) && pfds.revents & (POLLIN | POLLPRI)) {
- printf("foo!\n");
message = calloc(8192,sizeof(char));
recvsock = accept(sock,(struct sockaddr *) &addr, &addrlen);
len = read(recvsock,message,8192);
@@ -103,7 +99,6 @@ void runDaemon(int sock) {
buffer = malloc(sizeof(char *));
if (len>0) {
message[strlen(message)]='\n';
- fprintf(foo,"%s",message);
buffer[buflines]=message;
buflines++;
close(recvsock);
@@ -123,7 +118,6 @@ void runDaemon(int sock) {
we_own_log = 0;
}
}
- fclose(foo);
cleanup(0);
}