[merge] catch exceptions while opening /dev/urandom
John Arbash Meinel
john at arbash-meinel.com
Tue Oct 10 07:29:27 BST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
This patch is just meant to close this bug:
https://launchpad.net/products/bzr/+bug/56883
It works on the existing patch, only it prefers to catch specifically
IOError and OSError, rather than catching any error.
Also, it might be better if we checked e.errno to be in a specific set
(such as ENOENT), but since the bug report didn't indicate what the
actual error was, I'm just submitting it as is.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFKz3HJdeBCYSNAAMRAhQsAJ0Qk663bsOVMTMEXa4Y7JIx9O5tZwCfUKYl
nsv5tYMsFSEZo08Uvi7EKPw=
=LcaS
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: urandom-56883.patch
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20061010/7ba8b532/attachment.diff
More information about the bazaar
mailing list