Changeset 295 for trunk/src/sh_socket.c
- Timestamp:
- Oct 31, 2010, 10:36:04 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_socket.c
r272 r295 557 557 char message[SH_MAXMSG]; 558 558 struct sockaddr_un name; 559 int size; 559 ACCEPT_TYPE_ARG3 size = sizeof(name); 560 560 561 int nbytes; 561 562 int talkfd; … … 636 637 * 'name' is the address of the sender socket 637 638 */ 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 641 643 if ((talkfd < 0) && (errno == EAGAIN)) 642 644 {
Note:
See TracChangeset
for help on using the changeset viewer.