From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | scrappy(at)hub(dot)org (Marc G(dot) Fournier) |
Cc: | hackers(at)postgreSQL(dot)org |
Subject: | Re: [HACKERS] Open 6.4 items |
Date: | 1998-10-06 01:56:50 |
Message-ID: | 199810060156.VAA23130@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> 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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 1998-10-06 02:00:48 | Re: [ADMIN] COPY slows down; is it normal? |
Previous Message | Thomas G. Lockhart | 1998-10-06 01:34:07 | Re: [HACKERS] need help with csh |