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

--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to