You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jk...@apache.org on 2014/07/08 14:21:57 UTC

svn commit: r1608744 - /httpd/httpd/trunk/server/listen.c

Author: jkaluza
Date: Tue Jul  8 12:21:56 2014
New Revision: 1608744

URL: http://svn.apache.org/r1608744
Log:
* server/listen.c: return -1 in find_systemd_socket on error

Modified:
    httpd/httpd/trunk/server/listen.c

Modified: httpd/httpd/trunk/server/listen.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/listen.c?rev=1608744&r1=1608743&r2=1608744&view=diff
==============================================================================
--- httpd/httpd/trunk/server/listen.c (original)
+++ httpd/httpd/trunk/server/listen.c Tue Jul  8 12:21:56 2014
@@ -288,13 +288,13 @@ static int find_systemd_socket(process_r
         ap_log_perror(APLOG_MARK, APLOG_CRIT, sdc, process->pool, APLOGNO(02486)
                       "find_systemd_socket: Error parsing enviroment, sd_listen_fds returned %d",
                       sdc);
-        return 1;
+        return -1;
     }
 
     if (sdc == 0) {
         ap_log_perror(APLOG_MARK, APLOG_CRIT, sdc, process->pool, APLOGNO(02487)
                       "find_systemd_socket: At least one socket must be set.");
-        return 1;
+        return -1;
     }
 
     fdcount = atoi(getenv("LISTEN_FDS"));