Tom <tom@sdf.com> writes:
> Many UNIXes have a setproctitle() function, either in libc or libutil.
> I think a native function should be used if exists.
Right, that is one of the implementation strategies found in sendmail's
code. Basically, what sendmail has is an emulation routine that
provides the setproctitle() API on systems where there is no such libc
function.
regards, tom lane