]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
Simplify http_open().
authorAndre Noll <maan@systemlinux.org>
Sat, 19 Jan 2008 12:09:22 +0000 (13:09 +0100)
committerAndre Noll <maan@systemlinux.org>
Sat, 19 Jan 2008 12:09:22 +0000 (13:09 +0100)
No need to shutdown the clients if listen failed: There
can not possibly exist any connected clients at this point.

http_send.c

index 6b67a6aae09e0dca5b61fda5277d13b7a4603299..c1a4fc6af4b72ce20122ef98ec9cf36ce11f1439 100644 (file)
@@ -314,10 +314,8 @@ static int http_open(void)
        int ret;
 
        listen_fd = para_listen(AF_UNSPEC, IPPROTO_TCP, conf.http_port_arg);
        int ret;
 
        listen_fd = para_listen(AF_UNSPEC, IPPROTO_TCP, conf.http_port_arg);
-       if (listen_fd < 0) {
-               http_shutdown_clients();
+       if (listen_fd < 0)
                return listen_fd;
                return listen_fd;
-       }
        ret = mark_fd_nonblocking(listen_fd);
        if (ret < 0) {
                PARA_EMERG_LOG("%s\n", para_strerror(-ret));
        ret = mark_fd_nonblocking(listen_fd);
        if (ret < 0) {
                PARA_EMERG_LOG("%s\n", para_strerror(-ret));