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

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

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: brett(at)work(dot)chicken(dot)org (Brett McCormick)
Cc: scrappy(at)hub(dot)org, pgsql-hackers(at)hub(dot)org
Subject: Re: [HACKERS] removing the exec() from doexec()
Date: 1998-04-30 02:51:43
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
> sure enough..  well, try this on your OS and you can find out if perl
> knows how to change it.  it doesn't work under solaris.  the args to
> ps might be different for your system.
> perl -e '$0 = "it_works!";system "ps -p $$"'
> However, the args to the processes are so different that it seems easy
> to tell the difference..  if you're a human.  computers might have
> more trouble.  I've been known to use "killall postgres" (yes, I know,
> I'm bad!!)

The args don't change on a fork() either.  The only way is to look at
the parent of all the postgres children.

Bruce Momjian                          |  830 Blythe Avenue
maillist(at)candle(dot)pha(dot)pa(dot)us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

In response to

pgsql-hackers by date

Next:From: Brett McCormickDate: 1998-04-30 03:09:05
Subject: text patch -- sugg cmd when run as root
Previous:From: Bruce MomjianDate: 1998-04-30 02:42:39
Subject: Re: [HACKERS] removing the exec() from doexec()

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