Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT cygwin DOT com Delivered-To: mailing list cygwin-developers AT cygwin DOT com Message-ID: <00a901c268a8$d2b50bb0$6132bc3e@BABEL> From: "Conrad Scott" To: References: <20020930151551 DOT GA11140 AT redhat DOT com> Subject: Re: cygserver usage questions Date: Mon, 30 Sep 2002 18:43:00 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 "Christopher Faylor" wrote: > I notice that the code in cygserver creates some objects with > the default security rather than using something like &sec_none_nih. > Is that intentional? The security code in cygserver is much as I inherited it, except for some bits that I've temporarily ripped out. My intention has been to finish the whole System V IPC coding and then do the security as one sweep afterwards (as most of the code will be common to all three subsystems). My impression about the existing security code is that a lot of stuff is left wide open for the moment (i.e. for debugging purposes). For the moment I'll fix the shared object creations to use the standard cygwin approach as you suggest. > I also didn't touch the many uses of \n terminated debug_printf's et al, > nor did I remove GetLastError from said calls, since I wasn't sure when > the code was supposed to run stand-alone. I thought that the standalone *_printf's went through the smallprint too (and so %E would work either way) but I now see that they don't. I'll fix that and then use %E as appropriate. I also thought I'd fixed all the trailing \n's, but obviously not if there are still many of them abounding, so I'll take another sweep over those. > If it makes sense, I would appreciate it if someone (Conrad?) could take > a sweep over the code, use correct attributes in object (event, mutex, > semaphore) creation, eliminate the \n from the printf output, and use %E > in place of GetLastError. Watch this space etc. // Conrad