Patch for mmap problem in KConfigBackEnd, Bug #72586

Waldo Bastian bastian at kde.org
Thu Jan 15 22:15:15 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu January 15 2004 14:20, Dr. Juergen Pfennig wrote:
> About the current implementation in kconfigbackend.cpp: mmap() is used
> always to read conf files. Interrestingly the author was aware of a SIGBUS
> problem and tried to recover from the SIGBUS. BUT THIS DOES NOT WORK. Maybe
> it never worked? Or maybe it's a compiler optimization problem.

Ok, after reading up on "how to recover from SIGBUS on mmap" I now have a 
better patch :-)

Please test.

Darwin, Solaris and BSD developers: Does this patch compile for you?

Cheers,
Waldo
- -- 
bastian at kde.org -=|[ KDE: K Desktop for the Enterprise ]|=- bastian at suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFABxDzN4pvrENfboIRAuuoAKCUHW4DDEC/xyg+8i7FHE+6DSFiegCfTmcO
ptbIKTNbC+wq5WWRKxVWzy4=
=/szJ
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kconfig_sigbus.patch
Type: text/x-diff
Size: 2671 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040115/5ea2f934/attachment.patch>


More information about the kde-core-devel mailing list