Changeset 171 for trunk/src/sh_entropy.c
- Timestamp:
- Jul 8, 2008, 11:16:14 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_entropy.c
r170 r171 147 147 struct sockaddr_un addr; 148 148 int addr_len; 149 int retval; 149 150 150 151 #ifdef EGD_SOCKET_NAME … … 184 185 SL_RETURN( -1, _("sh_entropy") ); 185 186 } 186 if( connect( fd, (struct sockaddr*)&addr, addr_len) == -1 ) 187 do { 188 retval = connect(fd, (struct sockaddr *) &sinr, sizeof(sinr)); 189 } while (retval < 0 && (errno == EINTR || errno == EINPROGRESS)); 190 if( retval == -1 ) 187 191 { 188 192 myerror = errno; … … 682 686 status = -1; 683 687 } 688 #if !defined(USE_UNO) 684 689 else if (WIFSIGNALED(status)) 685 690 { … … 692 697 status = -1; 693 698 } 699 #endif 694 700 695 701 source->pipe = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.