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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] removing the exec() from doexec()
Дата
Msg-id 12254.893947967@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] removing the exec() from doexec()  (The Hermit Hacker <scrappy@hub.org>)
Ответы Re: [HACKERS] removing the exec() from doexec()  (Bruce Momjian <maillist@candle.pha.pa.us>)
Список pgsql-hackers
The Hermit Hacker <scrappy@hub.org> writes:
> 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...

Setting the process title from C is messy, but there is a readily
available reference.  The Berkeley sendmail distribution includes code
to emulate setproctitle on practically every platform.  See conf.h and
conf.c in any recent sendmail release.  Warning: it's grotty enough to
make a strong man weep.  Don't read near mealtime ;-)

            regards, tom lane

В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Pedro J. Lobo"
Дата:
Сообщение: Re: [HACKERS] text patch -- sugg cmd when run as root
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] removing the exec() from doexec()