[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: LD_PRELOAD question
From:       Alex Merry <huntedhacker () tiscali ! co ! uk>
Date:       2007-05-26 11:00:15
Message-ID: 200705261200.26025.huntedhacker () tiscali ! co ! uk
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Saturday 26 May 2007, Oswald Buddenhagen wrote:
> On Sat, May 26, 2007 at 12:30:30AM +0200, Thiago Macieira wrote:
> > But cat /proc/`pidof kdeinit`/environment shows 1885 bytes of NUL.
>
> i think that's an artifact of kdeinit_initsetproctitle. no bets,
> though.

Almost certainly.  proctitle_init() copies the environment to some newly 
allocated memory, and sets the old pointers (envp[i]) to NULL.  
Assuming the kernel uses these pointers (while libc uses its own 
environ pointer) to fill /proc, the environment file would end up 
empty.

The size seems odd, but I guess that's something to do with the way the 
kernel calculates/caches the environment size.

Alex



-- 
KDE: http://www.kde.org
Ubuntu/Kubuntu: http://www.ubuntu.org http://www.kubuntu.org
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

["signature.asc" (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic