Setting process command name in forked process
Brian Inglis
Brian.Inglis@SystematicSW.ab.ca
Wed Jan 24 17:09:26 GMT 2024
On 2024-01-23 12:32, Steve Beck via Cygwin wrote:
> Hope this is an appropriate question for this list:
> Version 3.4.10 (of cygwin1.dll - cygcheck output attached):
> I am trying to set the process command name of a forked process. Is there a prescribed way to do this in Cygwin?
> I looked for either prctl(2) from Linux or setproctitle(3) from FreeBSD but they don't link. I've tried things like overwriting the contents of argv[0], but that didn't work either (I'm assuming it's too late by the time the /proc entry has been set up).
Run/exec/fork/spawn via a symlink with the name you want to see?
--
Take care. Thanks, Brian Inglis Calgary, Alberta, Canada
La perfection est atteinte Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut
-- Antoine de Saint-Exupéry
More information about the Cygwin
mailing list