bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setproctitle()


From: Bruno Haible
Subject: Re: setproctitle()
Date: Tue, 4 May 2010 09:27:29 +0200
User-agent: KMail/1.9.9

Peter Seebach wrote:
> Is there any interest in attempting to provide a moderately portable
> setproctitle()?

Yes, because it looks like a portable implementation will have to use
different approaches on different platforms. [1] has the following:
  - use the function setproctitle.
  - use pstat(PSTAT_SETCMD, ...).
  - assign ->ps_argvstr
  - assign argv[0]
  - clobber argv and the environment area
  - send a Windows event

Bruno

[1] http://doxygen.postgresql.org/ps__status_8c-source.html




reply via email to

[Prev in Thread] Current Thread [Next in Thread]