[lkml]   [2001]   [Feb]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[BUG?] Unix Domain sockets in 2.4 series ?

I ain't kernel developer .. just poor little user,
but i think you might want to look at this stuff below...

I only tried that little code remotely so i do NOT know
what's system reaction on console ...

Anyway socket interface goes bye bye after this...

I tried it on 2.4.1-XFS and 2.4.0-XFS (both remotely)
and effects were exactly the same...

#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
int main(int argc, const char* argv[])
int retval;
int sockets[2];
char buf[1];
retval = socketpair(PF_UNIX, SOCK_DGRAM, 0, sockets);
if (retval != 0)
shutdown(sockets[0], SHUT_RDWR);
read(sockets[0], buf, 1);

- Krzysztof

CC reply for me, i am not subscriber of lkml
thanks :)

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:52    [W:0.045 / U:0.372 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site