Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Sat, 10 May 2003 22:37:03 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: cygipc (and PostgreSQL) XP problem resolved! Message-ID: <20030511023703.GE18993@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <1052554219 DOT 1824 DOT 14 DOT camel AT localhost> <20030510082949 DOT GD19367 AT cygbert DOT vinschen DOT de> <3EBD3179 DOT 6070004 AT ece DOT gatech DOT edu> <20030510171629 DOT GB11448 AT redhat DOT com> <3EBD3896 DOT 8000202 AT ece DOT gatech DOT edu> <1052612200 DOT 897 DOT 31 DOT camel AT localhost> <20030511012322 DOT GA18836 AT redhat DOT com> <1052617309 DOT 897 DOT 43 DOT camel AT localhost> <20030511014650 DOT GB18993 AT redhat DOT com> <1052618088 DOT 907 DOT 49 DOT camel AT localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1052618088.907.49.camel@localhost> User-Agent: Mutt/1.4.1i On Sun, May 11, 2003 at 11:54:48AM +1000, Robert Collins wrote: >On Sun, 2003-05-11 at 11:46, Christopher Faylor wrote: >> On Sun, May 11, 2003 at 11:41:49AM +1000, Robert Collins wrote: >> >On Sun, 2003-05-11 at 11:23, Christopher Faylor wrote: >> >> Or we can just use Global atoms, as I suggested in cygwin-developers. >> > >> >IIRC Global atoms are not global these days - they are global within a >> >single login at a time. I can't comment further without looking into the >> >ftok spec again, which I don't have time for right now... >> >> If that is really true, that would defeat the purpose of a global atom. > >Not at all. From memory: Global Atoms come from before multi-user >kernels in the windows world. They are used for things like registering >clipboard types - which are *not* meant to cross user boundaries. I thought that global atoms were used for much more than just registering clipboard types. The MSDN documentation says they are "unique throughout the system". However, this discussion is pointless since it is easy enough to write a program to check. *pause* Strangely, if I login via ssh GlobalAddAtom/GlobalFindAtom provide the same value regardless of user. On the console, with multiple logins, The value changes depending on the user. I suppose that is due to the fact that Windows thinks that the ssh service is "one session". So, you appear to be right that global atoms relate to login sessions. >>>I can't comment further without looking into the ftok spec again, which >>>I don't have time for right now... >> >>I'm not sure what ftok has to do with whether global atoms are global >>or not, however. > >ftok creates keys for use in IPC programs. They often need to cross >user boundaries - similar in concept to the privilege separation logic >in sshd these days. > >If we use a global atom that isn't truely global, this will break. Robert, please give me a little credit. I know what ftok does. I don't know why you have to study ftok to see if GlobalAtom is per-user or not. cgf -- 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/