diff options
Diffstat (limited to 'src/minilogd.c')
-rw-r--r-- | src/minilogd.c | 2 |
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); |