Changeset 320
- Timestamp:
- 05/16/07 10:21:51 (2 years ago)
- Files:
-
- version_0/ChangeLog (modified) (1 diff)
- version_0/ext/em.cpp (modified) (3 diffs)
- version_0/ext/project.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
version_0/ChangeLog
r304 r320 18 18 19Dec06: Added EventMachine#set_effective_user. 19 19 05Jan07: Upped max outstanding timers to 1000. 20 15May07: Applied Solaris patches from Brett Eisenberg version_0/ext/em.cpp
r314 r320 962 962 const char *output_binding = NULL; 963 963 964 struct sockaddr_un s un;964 struct sockaddr_un s_sun; 965 965 966 966 int sd_accept = socket (AF_LOCAL, SOCK_STREAM, 0); … … 973 973 unlink (filename); 974 974 975 bzero (&s un, sizeof(sun));976 s un.sun_family = AF_LOCAL;977 strncpy (s un.sun_path, filename, sizeof(sun.sun_path)-1);975 bzero (&s_sun, sizeof(s_sun)); 976 s_sun.sun_family = AF_LOCAL; 977 strncpy (s_sun.sun_path, filename, sizeof(s_sun.sun_path)-1); 978 978 979 979 // don't bother with reuseaddr for a local socket. … … 988 988 } 989 989 990 if (bind (sd_accept, (struct sockaddr*)&s un, sizeof(sun))) {990 if (bind (sd_accept, (struct sockaddr*)&s_sun, sizeof(s_sun))) { 991 991 //__warning ("binding failed"); 992 992 goto fail; version_0/ext/project.h
r319 r320 67 67 #define AF_LOCAL AF_UNIX 68 68 #endif 69 #define INADDR_NONE ((unsigned long)-1) 69 // The ff is superfluous on Solaris > 7. Thanks to Brett Eisenberg. 70 //#define INADDR_NONE ((unsigned long)-1) 70 71 #endif 71 72 #endif
