Re: setproctitle
From: 'DervishD' (disposable1_at_telefonica.net)
Date: 08/20/04
- Previous message: DervishD: "Re: setproctitle"
- In reply to: Robert White: "RE: setproctitle"
- Next in thread: DervishD: "Re: setproctitle"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 20 Aug 2004 18:23:31 +0200 To: Robert White <rwhite@casabyte.com>
Hi Robert :)
* Robert White <rwhite@casabyte.com> dixit:
> > The command-line arguments are being fetched from the process address
> > space, i.e. simply editing argv[] in userspace will have the desired
> > effect. Though this code is *** ugly.
[...]
> Can the entirety of arg[] be moved to a newly allocated region, if
> so how? (e.g. wouldn't I have to have access to overwrite
> mm->arg_start etc?
That was one of the problems I was having: overwriting the memory
you already have is easy, but moving... I mean, you realloc and move
the memory but the kernel doesn't notice it, am I wrong?
> I'd prefer a setthreadtitle(char * new_title) such that the
> individual threads in a process (including the master thread, and
> so setproctitle() function is covered) could be re-titled to
> declare their purposes. It would make debugging and logging a lot
> easier and/or more meaningful sometimes. 8-)
Exactly ;)
> I'd be willing to work on this if there is interest.
I'm VERY interested, but the problem is that in any case I won't
be able to use that in my programs since portability is sometimes an
issue :( Not all OS are able of such things. The problem, in the end,
is that changing the name of the process is not a standard thing...
Thanks for your help :)
Raúl Núñez de Arenas Coronado
-- Linux Registered User 88736 http://www.pleyades.net & http://raul.pleyades.net/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Previous message: DervishD: "Re: setproctitle"
- In reply to: Robert White: "RE: setproctitle"
- Next in thread: DervishD: "Re: setproctitle"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]