aboutsummaryrefslogtreecommitdiffstats
path: root/src/minilogd.c
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-11-30 19:50:32 +0000
committerBill Nottingham <notting@redhat.com>1999-11-30 19:50:32 +0000
commit9b6ca64f5886077a0c5462cd984f0ccc814fef95 (patch)
tree7234d2d1fdf51c84e1d42a223420b2d46b47ed13 /src/minilogd.c
parent78305f0ddba3e50c0a6af9716573b76aef90308a (diff)
downloadinitscripts-9b6ca64f5886077a0c5462cd984f0ccc814fef95.tar
initscripts-9b6ca64f5886077a0c5462cd984f0ccc814fef95.tar.gz
initscripts-9b6ca64f5886077a0c5462cd984f0ccc814fef95.tar.bz2
initscripts-9b6ca64f5886077a0c5462cd984f0ccc814fef95.tar.xz
initscripts-9b6ca64f5886077a0c5462cd984f0ccc814fef95.zip
duh - use dgram to talk to real syslogd
Diffstat (limited to 'src/minilogd.c')
-rw-r--r--src/minilogd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/minilogd.c b/src/minilogd.c
index b0432408..09cd2f03 100644
--- a/src/minilogd.c
+++ b/src/minilogd.c
@@ -35,7 +35,7 @@ void freeBuffer() {
strncpy(addr.sun_path,_PATH_LOG,sizeof(addr.sun_path)-1);
/* wait for klogd to hit syslog */
sleep(1);
- sock = socket(AF_LOCAL, SOCK_STREAM,0);
+ sock = socket(AF_LOCAL, SOCK_DGRAM,0);
conn=connect(sock,(struct sockaddr *) &addr,sizeof(addr));
while (x<buflines) {
if (!conn) write(sock,buffer[x],strlen(buffer[x])+1);