> platforms where it is not in libc, the code does different things on
> different platforms - on some it just copies new title over argv array.
>    Some systems has pstat() system call - again, sendmail's code uses it.

What OS's has pstat()?  Can someone supply a patch for those?


> The overhead is platform-dependent, and for many platform is actually low.
> The biggest overhead is for SCO, as far as I understand the code; may be I
> missed something, but I hope I don't.
> 
> > >    Bruce, can you give me some hints where in the code you change process
> > > title? I hope there are no more than two or three places to change.
> > 
> > Massimo generalized the process status code in
> > include/utils/ps_status.h.  See that.  It is the central place to change
> > it.
> 
>    Thanks, I'll look into it.
> 
> > >    What is our opinion on licensing? At first glance the license looks
> > > pretty compatible:
> > 
> > Yes, except that the Eric P. Allman line basically says nothing about
> > his copyright.  Is his the same as BSD?  Without stating that, it is a
> > very limited copyright.
> 
>    I have never understand copyright/licensing issues (count I live in
> post-totalitarian country where there was One copyright owner - The
> Government, and One license...)
> 
> Oleg.
> ---- 
>     Oleg Broytmann    http://members.xoom.com/phd2.1/    phd2@earthling.net
>            Programmers don't die, they just GOSUB without RETURN.
> 
> 


-- 
  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

Mon, 12 Jun 2000 16:04:53 -0400 (EDT)
Bruce Momjian <pgman@candle.pha.pa.us>
Re: setproctitle
Hi!

On Mon, 12 Jun 2000, Bruce Momjian wrote:
> What OS's has pstat()?

   My understanding of sendmail sources answers that pstat() is used only
on HP-UX...

Oleg.
---- 
    Oleg Broytmann    http://members.xoom.com/phd2.1/    phd2@earthling.net
           Programmers don't die, they just GOSUB without RETURN.


Tue, 13 Jun 2000 08:29:41 +0000 (GMT)
Oleg Broytmann <phd@phd.russ.ru>
Re: setproctitle
> Hi!
> 
> On Mon, 12 Jun 2000, Bruce Momjian wrote:
> > What OS's has pstat()?
> 
>    My understanding of sendmail sources answers that pstat() is used only
> on HP-UX...
> 

Maybe Tom Lane can comment on wither it also has setproctitle().

-- 
  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

Tue, 13 Jun 2000 04:53:55 -0400 (EDT)
Bruce Momjian <pgman@candle.pha.pa.us>
Re: setproctitle
On Tue, 13 Jun 2000, Bruce Momjian wrote:

> > > What OS's has pstat()?
> > 
> >    My understanding of sendmail sources answers that pstat() is used only
> > on HP-UX...
> > 
> 
> Maybe Tom Lane can comment on wither it also has setproctitle().

The current ps display code works fine on HP-UX, Tom verified it. (And it
does use pstat().)


-- 
Peter Eisentraut                  Sernanders vï¿½g 10:115
peter_e@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden


Tue, 13 Jun 2000 14:49:10 +0200 (MET DST)
Peter Eisentraut <e99re41@DoCS.UU.SE>
Re: Re: setproctitle
Bruce Momjian <pgman@candle.pha.pa.us> writes:
>> My understanding of sendmail sources answers that pstat() is used only
>> on HP-UX...

> Maybe Tom Lane can comment on wither it also has setproctitle().

No, it doesn't (at least not in 10.20).

			regards, tom lane

Tue, 13 Jun 2000 10:36:24 -0400
Tom Lane <tgl@sss.pgh.pa.us>
Re: Re: setproctitle 
[ Charset ISO-8859-1 unsupported, converting... ]
> On Tue, 13 Jun 2000, Bruce Momjian wrote:
> 
> > > > What OS's has pstat()?
> > > 
> > >    My understanding of sendmail sources answers that pstat() is used only
> > > on HP-UX...
> > > 
> > 
> > Maybe Tom Lane can comment on wither it also has setproctitle().
> 
> The current ps display code works fine on HP-UX, Tom verified it. (And it
> does use pstat().)

Oh.  Great.

-- 
  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

Tue, 13 Jun 2000 22:26:07 -0400 (EDT)
Bruce Momjian <pgman@candle.pha.pa.us>
Re: Re: setproctitle
> Hi!
> 
> On Mon, 12 Jun 2000, Bruce Momjian wrote:
> > What OS's has pstat()?
> 
>    My understanding of sendmail sources answers that pstat() is used only
> on HP-UX...
> 

Tom Lane, does the new 7.1 ps status code work under HP-UX?

-- 
  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

Tue, 13 Jun 2000 23:26:36 -0400 (EDT)
Bruce Momjian <pgman@candle.pha.pa.us>
Re: setproctitle
Bruce Momjian <pgman@candle.pha.pa.us> writes:
>>>> What OS's has pstat()?
>> 
>> My understanding of sendmail sources answers that pstat() is used only
>> on HP-UX...

> Tom Lane, does the new 7.1 ps status code work under HP-UX?

Yup.  I tested Peter's code for him before he checked it in --- it
works, at least on 10.20.

The pstat man page says pstat was developed by HP, so I guess it
probably is HPUX only :-(.  Wish HP were a little more committed to
following existing standards when there's no reason for a new one.

			regards, tom lane

Tue, 13 Jun 2000 23:36:40 -0400
Tom Lane <tgl@sss.pgh.pa.us>
Re: Re: setproctitle 