X-Spam-Check-By: sourceware.org
Message-ID: <ba40711f0603251053i36715466nf8ae53ec11ac2096@mail.gmail.com>
Date: Sat, 25 Mar 2006 13:53:01 -0500
From: "Lev Bishop" <lev.bishop@gmail.com>
To: cygwin@cygwin.com
Subject: Re: service interact with desktop broken between: 1.5.5 & 1.5.19
In-Reply-To: <ba40711f0603250937u7b707c05ke60f42f09459b685@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Disposition: inline
References: <007e01c64de2$c95200a0$b3db87d4@multiplay.co.uk> 	 <01ff01c64f42$079578f0$b3db87d4@multiplay.co.uk> 	 <ba40711f0603250937u7b707c05ke60f42f09459b685@mail.gmail.com>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k2PIr8bl021577

Another bug in cygrunsrv.cc:main() (again not the reason for this problem)

--- cygrunsrv.cc.old    2006-03-25 13:49:08.238075200 -0500
+++ cygrunsrv.cc        2006-03-25 13:50:35.473513600 -0500
@@ -1930,14 +1930,14 @@
       case '1':
        if (action != Install)
          return error (IONotAllowed);
-       if (in_stdin)
+       if (in_stdout)
          return error (OnlyOneIO);
        in_stdout = optarg;
        break;
       case '2':
        if (action != Install)
          return error (IONotAllowed);
-       if (in_stdin)
+       if (in_stderr)
          return error (OnlyOneIO);
        in_stderr = optarg;
        break;

On 3/25/06, Lev Bishop wrote:
> Can't tell you why this isn't working for you (I wasn't able to make
> it work either). But looking at the cygrunsrv sources I noticed
> something else that doesn't look quite right:
>
> In cygrunsrv.cc:print_service():
>      if (interact)
>        strcat (tmp, "--nohide ");
>
> I assume what is intended is:
>      if (interact && showc)
>        strcat (tmp, "--nohide ");

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


