Return-Path: X-Original-To: apmail-httpd-dev-archive@www.apache.org Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C961D11A40 for ; Tue, 8 Jul 2014 12:01:21 +0000 (UTC) Received: (qmail 39392 invoked by uid 500); 8 Jul 2014 12:01:21 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 39322 invoked by uid 500); 8 Jul 2014 12:01:21 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 39307 invoked by uid 99); 8 Jul 2014 12:01:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jul 2014 12:01:20 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ylavic.dev@gmail.com designates 209.85.223.169 as permitted sender) Received: from [209.85.223.169] (HELO mail-ie0-f169.google.com) (209.85.223.169) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jul 2014 12:01:15 +0000 Received: by mail-ie0-f169.google.com with SMTP id rl12so4918173iec.28 for ; Tue, 08 Jul 2014 05:00:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=1VUEgOM37n+T/VcFQtwt5muom8lgpIc6eCHb5RhnxQ0=; b=tuUqKSQ99FZW2IqB1bhIRGavBmKznggEeO2TxtZIjmhOQfoMX3vx1DeN3q5taoKwIp UoeLxFLhbalpaux/LtXZRxwE7IkXFT5b/qB9nA77QEIALSle43w+bhwGGoAApOX+/R72 E3U9BeQPX17uo86KjhHxoCK4CCSvomtSqXvBaEG8zScxU3fdYB4WB358w/AjPNfVisPu EeBXxuQn4FxCuozLk/BlU08bjpzUha76/uZeO/2A0P19y3IVDMHuLC/yL0kdILGSziz2 XOAhNXiIP3aMXYp5zg6I+N7fq5xJGkgmGXPvl6zyGUk/tdqtdW+FCQvvjlvZrRr8MC/f jwUg== MIME-Version: 1.0 X-Received: by 10.51.16.132 with SMTP id fw4mr3238100igd.26.1404820855084; Tue, 08 Jul 2014 05:00:55 -0700 (PDT) Received: by 10.42.28.2 with HTTP; Tue, 8 Jul 2014 05:00:55 -0700 (PDT) In-Reply-To: <20140708094224.BC4F62388860@eris.apache.org> References: <20140708094224.BC4F62388860@eris.apache.org> Date: Tue, 8 Jul 2014 14:00:55 +0200 Message-ID: Subject: Re: svn commit: r1608703 - /httpd/httpd/trunk/server/listen.c From: Yann Ylavic To: httpd Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Jul 8, 2014 at 11:42 AM, wrote: > > @@ -279,8 +279,35 @@ static apr_status_t close_listeners_on_e > > #ifdef HAVE_SYSTEMD > > +static int find_systemd_socket(process_rec * process, apr_port_t port) { > + int fdcount, fd; > + int sdc = sd_listen_fds(0); > + > + if (sdc < 0) { > + 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; > + } > + > + 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; > + } Shouldn't these returns be -1?