Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] removing the exec() from doexec()

From: dg(at)illustra(dot)com (David Gould)
To: maillist(at)candle(dot)pha(dot)pa(dot)us (Bruce Momjian)
Cc: scrappy(at)hub(dot)org, brett(at)abraxas(dot)scene(dot)com, pgsql-hackers(at)hub(dot)org
Subject: Re: [HACKERS] removing the exec() from doexec()
Date: 1998-04-30 06:24:39
Message-ID: 9804300624.AA24386@hawk.illustra.com (view raw or flat)
Thread:
Lists: pgsql-hackers
> > On Wed, 29 Apr 1998, Bruce Momjian wrote:
> > 
> > > No reason for the exec().  I believe the only advantage is that it gives
> > > us a separate process name in the 'ps' listing.  I have looked into
> > > simulating this.
> > 
> > 	Under FreeBSD, there is:
> > 
> > setproctitle(3) - set the process title for ps 1
> > 
> > 	This isn't available under Solaris though, last I checked...
> 
> Not even BSDI, which is BSD 4.4 like FreeBSD.

ubik:~$ uname -a
Linux ubik 2.0.32 #1 Wed Nov 19 00:46:45 EST 1997 i586 unknown
ubik:~$ perl -e '$0 = "it_works!";system "ps p $$"'
  PID TTY STAT  TIME COMMAND
 7629  p8 S    0:00 it_works!                                                  

-dg



In response to

Responses

pgsql-hackers by date

Next:From: David GouldDate: 1998-04-30 06:28:42
Subject: Re: [HACKERS] text patch -- sugg cmd when run as root
Previous:From: Bruce MomjianDate: 1998-04-30 04:21:15
Subject: Re: [HACKERS] Re: [PATCHES] S_LOCK reduced contention through backoff patch

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group