Changeset 295 for trunk/src/sh_socket.c


Ignore:
Timestamp:
Oct 31, 2010, 10:36:04 AM (14 years ago)
Author:
katerina
Message:

Support for IPv6 (ticket #222).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_socket.c

    r272 r295  
    557557  char message[SH_MAXMSG];
    558558  struct sockaddr_un name;
    559   int size;
     559  ACCEPT_TYPE_ARG3 size = sizeof(name);
     560
    560561  int nbytes;
    561562  int talkfd;
     
    636637   * 'name' is the address of the sender socket
    637638   */
    638   size = sizeof (name);
    639   talkfd = retry_accept(FIL__, __LINE__,
    640                         pf_unix_fd, (struct sockaddr *) & name, &size);
     639  do {
     640    talkfd = accept(pf_unix_fd, (struct sockaddr *) &name, &size);
     641  } while (talkfd < 0 && errno == EINTR);
     642
    641643  if ((talkfd < 0) && (errno == EAGAIN))
    642644    {
Note: See TracChangeset for help on using the changeset viewer.