From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/29420 Path: main.gmane.org!not-for-mail From: Andrew J Cosgriff Newsgroups: gmane.emacs.gnus.general Subject: Re: Preventing multiple startups of Gnus by the same user? Date: 07 Mar 2000 15:35:19 +1100 Sender: owner-ding@hpc.uh.edu Message-ID: <1yr9dns8hk.fsf@earthling.aia.aig.com.au> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035166093 2677 80.91.224.250 (21 Oct 2002 02:08:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:08:13 +0000 (UTC) Return-Path: Original-Received: from lisa.math.uh.edu (lisa.math.uh.edu [129.7.128.49]) by mailhost.sclp.com (Postfix) with ESMTP id 09C9AD051E for ; Mon, 6 Mar 2000 23:37:57 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by lisa.math.uh.edu (8.9.1/8.9.1) with ESMTP id WAB04226; Mon, 6 Mar 2000 22:36:16 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 06 Mar 2000 22:35:35 -0600 (CST) Original-Received: from mailhost.sclp.com (postfix@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id WAA13972 for ; Mon, 6 Mar 2000 22:35:23 -0600 (CST) Original-Received: from mail.aia-a.com.au (unknown [203.17.41.35]) by mailhost.sclp.com (Postfix) with ESMTP id 740E7D051E for ; Mon, 6 Mar 2000 23:35:30 -0500 (EST) Original-Received: from battery.aia.aig.com.au (battery.aia.aig.com.au [192.168.1.134]) by mail.aia-a.com.au (8.9.3/8.9.1) with ESMTP id PAA14389 for ; Tue, 7 Mar 2000 15:34:24 +1100 (EST) Original-Received: from earthling.aia.aig.com.au (earthling.aia.aig.com.au [192.168.1.214]) by battery.aia.aig.com.au (8.9.1b+Sun/8.9.1) with ESMTP id PAA27746 for ; Tue, 7 Mar 2000 15:34:45 +1100 (EST) Original-Received: by earthling.aia.aig.com.au (Postfix, from userid 1225) id 12B79101F; Tue, 7 Mar 2000 15:35:20 +1100 (EST) Original-To: ding@gnus.org X-Face: PBPJ+.AE`FBN4$}HrwwEhJ)x?-5$MQ%Z)svNR@Q\WG6[GDr,}a@8ULwGWBsk,Pqxm!Z- X-URI: X-Now-Playing: Got Sold on Heaven (Snout, Circle High and Wide) X-Zippy-Says: Life is a POPULARITY CONTEST! I'm REFRESHINGLY CANDID!! In-Reply-To: Lloyd Zusman's message of "Tue, 07 Mar 2000 04:05:58 GMT" Original-Lines: 31 User-Agent: Gnus/5.0804 (Gnus v5.8.4) XEmacs/21.2 (Iris) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:29420 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:29420 Lloyd Zusman wrote : > Suppose I have started up XEmacs as a certain user on my machine, > and this XEmacs process is running Gnus. Now, suppose I forget that > this original XEmacs process is evan running and I start XEmacs up > all over again under that same user ID. Now, suppose I try to start > Gnus under this second XEmacs process. What I'd like to do is for > this second Gnus to never start up because there's another one > running as the same user ID within a different process. > > Unless I'm mistaken, `gnus-alive-p' only checks for an > already-running Gnus within a single XEmacs process. > > If this cannot be done directly using Gnus, perhaps XEmacs provides > some functions that I can use to implement this ... ??? Do you run gnuserv ? Only one instance of gnuserv can run per user, so if you start it a second time in a second copy of emacs it'll die straight away - perhaps just before you try starting gnuserv in your .emacs you could run "gnuclient -eval '(gnus-alive-p)'" and see what it says - if there's already a copy of XEmacs running gnuserv that's running gnus, it'd work. Of course, if you're in the habit of running multiple copies of XEmacs, you'd prolly want to make sure that only the one running Gnus is the one that runs gnuserv... HTH. -- Andrew J Cosgriff keep left