Re: Changing argv[0] under Linux.

Anuradha Ratnaweera (ARatnaweera@virtusa.com)
Mon, 27 Jan 2003 13:47:41 +0600


On Wed, 2003-01-15 at 00:59, DervishD wrote:
>
> I want to change the argv[0] a program shows, in order
> to be pretty-printed when issuing 'ps', 'top' or
> other commands.

Sorry about the late reply.

This is done nicely in PostgreSQL. Check source at early
initializing parts of the postmaster.

Anuradha

-- 

Debian GNU/Linux (kernel 2.4.20)

It may be better to be a live jackal than a dead lion, but it is better still to be a live lion. And usually easier. -- Lazarus Long

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/