On Thu, 11 May 2000, Peter Eisentraut wrote:

> On Wed, 10 May 2000, Bruce Momjian wrote:
> 
> > Oh.  Can you look at the setproctitle code on your platform and see
> > how it implements it?
> 
> In the end I believe we'll make the world a better place if we're using
> setproctitle when available. Sendmail does. If someone really complains
> about speed loss we can always make it an option not to use it, but I
> won't buy into that until I see some profiling evidence.

Its a rare thing, but definitely agree with Peter here :)



Thu, 11 May 2000 08:48:13 -0300 (ADT)
The Hermit Hacker <scrappy@hub.org>
Re: setproctitle() no longer used?
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> On Wed, 10 May 2000, Bruce Momjian wrote:
> 
> > Oh.  Can you look at the setproctitle code on your platform and see
> > how it implements it?
> 
> In the end I believe we'll make the world a better place if we're using
> setproctitle when available. Sendmail does. If someone really complains
> about speed loss we can always make it an option not to use it, but I
> won't buy into that until I see some profiling evidence.

Good point.  I just did it because it worked on BSD, and I don't have
setproctitle.  If sendmail does it by default if setproctitle exists,
maybe that is the way to go.

BSDI 4.01 doesn't have setproctitle, but I don't need it because I can
just assign anything in there.

I saw the FreeBSD code, and it seems they have added a sysctl() call in
the library setproctitle code to handle it.

-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  pgman@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

Thu, 11 May 2000 11:28:12 -0400 (EDT)
Bruce Momjian <pgman@candle.pha.pa.us>
Re: setproctitle() no longer used?
> On Thu, 11 May 2000, Peter Eisentraut wrote:
> 
> > On Wed, 10 May 2000, Bruce Momjian wrote:
> > 
> > > Oh.  Can you look at the setproctitle code on your platform and see
> > > how it implements it?
> > 
> > In the end I believe we'll make the world a better place if we're using
> > setproctitle when available. Sendmail does. If someone really complains
> > about speed loss we can always make it an option not to use it, but I
> > won't buy into that until I see some profiling evidence.
> 
> Its a rare thing, but definitely agree with Peter here :)

I think I do too.  Let me add this to the TODO list:

	* use setproctitle() if it exists for 'ps' display of status

-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  pgman@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

Thu, 11 May 2000 11:32:00 -0400 (EDT)
Bruce Momjian <pgman@candle.pha.pa.us>
Re: setproctitle() no longer used?