Received: from candle.pha.pa.us (root@s5-03.ppp.op.net [209.152.195.67]) by hub.org (8.8.8/8.8.8) with ESMTP id WAA13251 for ; Mon, 5 Oct 1998 22:04:03 -0400 (EDT) (envelope-from maillist@candle.pha.pa.us) Received: (from maillist@localhost) by candle.pha.pa.us (8.9.0/8.9.0) id VAA23130; Mon, 5 Oct 1998 21:56:50 -0400 (EDT) From: Bruce Momjian Message-Id: <199810060156.VAA23130@candle.pha.pa.us> Subject: Re: [HACKERS] Open 6.4 items In-Reply-To: from "Marc G. Fournier" at "Oct 5, 1998 1: 5:14 am" To: scrappy@hub.org (Marc G. Fournier) Date: Mon, 5 Oct 1998 21:56:50 -0400 (EDT) Cc: hackers@postgreSQL.org X-Mailer: ELM [version 2.4ME+ PL47 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit > On Fri, 2 Oct 1998, Bruce Momjian wrote: > > > Serious Bugs > > ------------ > > change pg args for platforms that don't support argv changes > > (setproctitle()?, sendmail hack?) > > I'll try and dive into this on Tuesday night...maybe even > afternoon...will use sendmail as a basis for it, which *should* hit most > of the operating systems out there... Let me remind you what has to be done. We need to use set_proctitle() for those platforms that have it. I don't have it here, but Linux does. Second, we need to determine if set_proctitle is a cheap function by looking at the library source code. Third, we need a 'configure' test to see if the modification of argv[0] displays in the ps output. If modification of argv[0] works, use it, as the current code does. If not, then if set_proctitle() is available, use to change the backend 'ps' display on backend startup, and if it is cheap, use it to change status for every command. If a platform has neither, use the sendmail code to change the ps display on backend startup only. The sendmail code it so slow to use for every command, I think. -- Bruce Momjian | http://www.op.net/~candle maillist@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026