Mercurial > hg > nginx
comparison src/core/ngx_connection.c @ 3260:a6df0624203c
unlink unix domain socket file after testing
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 30 Oct 2009 19:16:50 +0000 |
parents | a7491af45540 |
children | 35077c22326c |
comparison
equal
deleted
inserted
replaced
3259:e9c0fae6be1e | 3260:a6df0624203c |
---|---|
362 | 362 |
363 failed = 1; | 363 failed = 1; |
364 | 364 |
365 continue; | 365 continue; |
366 } | 366 } |
367 | |
368 #if (NGX_HAVE_UNIX_DOMAIN) | |
369 | |
370 if (ngx_test_config && ls[i].sockaddr->sa_family == AF_UNIX) { | |
371 u_char *name = ls[i].addr_text.data + sizeof("unix:") - 1; | |
372 | |
373 if (ngx_delete_file(name) == -1) { | |
374 ngx_log_error(NGX_LOG_EMERG, cycle->log, ngx_socket_errno, | |
375 ngx_delete_file_n " %s failed", name); | |
376 } | |
377 } | |
378 #endif | |
367 | 379 |
368 if (listen(s, ls[i].backlog) == -1) { | 380 if (listen(s, ls[i].backlog) == -1) { |
369 ngx_log_error(NGX_LOG_EMERG, log, ngx_socket_errno, | 381 ngx_log_error(NGX_LOG_EMERG, log, ngx_socket_errno, |
370 "listen() to %V, backlog %d failed", | 382 "listen() to %V, backlog %d failed", |
371 &ls[i].addr_text, ls[i].backlog); | 383 &ls[i].addr_text, ls[i].backlog); |