(mini_inetd): make failing to create a socket non-fatal
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7826 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1995, 1996, 1997, 1998, 1999 Kungliga Tekniska H<>gskolan
|
* Copyright (c) 1995 - 2000 Kungliga Tekniska H<>gskolan
|
||||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -118,8 +118,10 @@ mini_inetd (int port)
|
|||||||
|
|
||||||
for (i = 0, a = ai; a != NULL; a = a->ai_next, ++i) {
|
for (i = 0, a = ai; a != NULL; a = a->ai_next, ++i) {
|
||||||
fds[i] = socket (a->ai_family, a->ai_socktype, a->ai_protocol);
|
fds[i] = socket (a->ai_family, a->ai_socktype, a->ai_protocol);
|
||||||
if (fds[i] < 0)
|
if (fds[i] < 0) {
|
||||||
err (1, "socket");
|
warn (1, "socket");
|
||||||
|
continue;
|
||||||
|
}
|
||||||
socket_set_reuseaddr (fds[i], 1);
|
socket_set_reuseaddr (fds[i], 1);
|
||||||
if (bind (fds[i], a->ai_addr, a->ai_addrlen) < 0)
|
if (bind (fds[i], a->ai_addr, a->ai_addrlen) < 0)
|
||||||
err (1, "bind");
|
err (1, "bind");
|
||||||
|
Reference in New Issue
Block a user