On Fri, Jan 16, 2009 at 10:58:38PM +0100, Roland Mainz wrote: > Edward Pilatowicz wrote: > > On Fri, Jan 16, 2009 at 10:07:41PM +0100, Roland Mainz wrote: > > > Does Unix/Solaris have a function to change the process's name returned > > > by $ ps -ef # ? > > > > hm. i assume your asking about this wrt 6793120. > > *shudder* ... is the issue really that big that half of Sun now knows it > ? ;-/ >
no, it's just that i'm on a LOT of the bug notification aliases. besides, i watch ksh93 bugs with interest since i keep bumping into them. :) (hopefully, you'll be fixing 6782948 soon?) > > this is kinda a > > slippery slope. there is no public interface to do this, but you could > > probably do it by mucking with. > > > > struct user -> u_comm > > struct user -> u_psargs > > struct user -> u_argc > > struct user -> u_argv > > Umpf... that sounds a bit like a risky hack... or not ? > yes, this would be very much of a hack. and it would interact poorly with debugging tools (like libproc) which try to match process names to address space mappings, etc. (although i imagine that there aren't too many people out there debugging /bin/sleep.) it also opens a can of worms, because one you start allowing random process to muck with this info you'll get the security folks up in arms because it would become easier to rename/hide processes, etc. i'm afraid i might be damming myself by making this suggestion, but would using a pre-compiled ksh script solve this problem? ed _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code