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

List:       kde-devel
Subject:    Re: LD_PRELOAD question
From:       "=?utf-8?q?S=2E=C3=87a=C4=9Flar?= Onur" <caglar () pardus ! org ! tr>
Date:       2007-05-26 23:45:41
Message-ID: 200705270245.44335.caglar () pardus ! org ! tr
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


26 May 2007 Cts tarihinde, Alex Merry şunları yazmıştı: 
> On Saturday 26 May 2007, Oswald Buddenhagen wrote:
> > 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.

Yep, you (both) are completly right, basically i just commented out all 
kdeinit_initsetproctitle calls from kdeinit and;

[caglar@zangetsu][/proc/6868]> ps aux
...
root      6789  0.0  0.0   1468   152 ?        S    02:33   0:00 
start_kdeinit --new-startup +kcminit_startup
caglar    6790  0.0  0.3  25276  7560 ?        Ss   02:33   
0:00 /usr/kde/3.5/bin/kdeinit --oom-pipe 5 --new-startup +kcminit_startup
caglar    6793  0.1  0.1  24532  2800 ?        S    02:33   
0:00 /usr/kde/3.5/bin/kdeinit --oom-pipe 5 --new-startup +kcminit_startup
caglar    6795  0.0  0.3  27216  8092 ?        S    02:33   
0:00 /usr/kde/3.5/bin/kdeinit --oom-pipe 5 --new-startup +kcminit_startup
caglar    6797  0.6  0.8  37212 16840 ?        S    02:33   
0:00 /usr/kde/3.5/bin/kdeinit --oom-pipe 5 --new-startup +kcminit_startup
caglar    6804  0.1  0.4  26748  9816 ?        S    02:33   
0:00 /usr/kde/3.5/bin/kdeinit --oom-pipe 5 --new-startup +kcminit_startup
caglar    6805  0.2  0.6  28608 12408 ?        S    02:33   
0:00 /usr/kde/3.5/bin/kdeinit --oom-pipe 5 --new-startup +kcminit_startup
...

[caglar@zangetsu][~]> cd /proc/6790/
[caglar@zangetsu][/proc/6790]> cat environ
LD_BIND_NOW=trueMANPATH=/usr/local/share/man:....

Cheers
-- 
S.Çağlar Onur <caglar@pardus.org.tr>
http://cekirdek.pardus.org.tr/~caglar/

Linux is like living in a teepee. No Windows, no Gates and an Apache in house!

["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