From kde-devel Sat May 26 11:00:15 2007 From: Alex Merry Date: Sat, 26 May 2007 11:00:15 +0000 To: kde-devel Subject: Re: LD_PRELOAD question Message-Id: <200705261200.26025.huntedhacker () tiscali ! co ! uk> X-MARC-Message: https://marc.info/?l=kde-devel&m=118017735604011 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============2055983563==" --===============2055983563== Content-Type: multipart/signed; boundary="nextPart2195033.VgIMzxHcX8"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart2195033.VgIMzxHcX8 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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=20 allocated memory, and sets the old pointers (envp[i]) to NULL. =20 Assuming the kernel uses these pointers (while libc uses its own=20 environ pointer) to fill /proc, the environment file would end up=20 empty. The size seems odd, but I guess that's something to do with the way the=20 kernel calculates/caches the environment size. Alex =2D-=20 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 --nextPart2195033.VgIMzxHcX8 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBGWBNABRauKLutZ9ARAnDHAJ0cVjBYgtinnX65Y/aspuQVjMpepgCgtbZU x/JIg7F/1W/vnzY7zju35XI= =u9da -----END PGP SIGNATURE----- --nextPart2195033.VgIMzxHcX8-- --===============2055983563== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============2055983563==--