<div dir="ltr"><div>When one launches erlang, ps or top shows long path to beam.smp, then many useless command line options, then many-many -pa commands and only in the very end something like -s </div><div><br></div><div>So it is rather hard to distinguish one erlang program from another.</div><div><br></div><div>It would be very good to have an API for changing current process name.</div><div><br></div><div>Looks like this feature is very complicated to port between different OS.</div><div><br></div><div>For example in Linux there must be combined two methods: change argv[0] and call prctl.</div><div><br></div><div>In MacOS it is required to summon a devil ^W  call some tricky code like: <a href="https://github.com/openwebos/nodejs/blob/7272321dffae49f67c3d128aedb27bebc3790398/src/platform_darwin_proctitle.cc">https://github.com/openwebos/nodejs/blob/7272321dffae49f67c3d128aedb27bebc3790398/src/platform_darwin_proctitle.cc</a></div><div>This code partially works under macos, it changes process name in ActivityMonitor, but doesn't change in top/ps</div><div><br></div><div><br></div><div>But it seems that it is always required to change argv[0]</div><div><br></div><div>Have anyone tried to do it?  It seems that original argc,argv are lost in erl_start function.</div><div><br></div><div><br></div><div><br></div><div><br></div></div>