Changeset 731
- Timestamp:
- 02/29/08 20:01:44 (6 months ago)
- Files:
-
- branches/binary/server/memcached.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/binary/server/memcached.c
r730 r731 2986 2986 } 2987 2987 2988 2989 2988 static int server_socket(const int port, const int prot) { 2990 2989 int sfd; … … 3077 3076 exit(EXIT_FAILURE); 3078 3077 } 3079 3080 if (listen_conn == NULL) { 3081 listen_conn = listen_conn_add; 3082 } else { 3083 listen_conn_add->next = listen_conn->next; 3084 listen_conn->next = listen_conn_add; 3085 } 3078 listen_conn_add->next = listen_conn; 3079 listen_conn = listen_conn_add; 3086 3080 } 3087 3081 } … … 3089 3083 freeaddrinfo(ai); 3090 3084 3091 if (success == 0) 3092 return 1; 3093 3094 return 0; 3085 /* Return zero iff we detected no errors in starting up connections */ 3086 return success == 0; 3095 3087 } 3096 3088
