# HG changeset patch # User Bart Smaalders # Date 1306940916 25200 # Node ID 18dcd0ca5b0c672c8a8fbb48c52e4eeb1e68aa1c # Parent e703835db76dd39f0a8dfd3dc14fadf95dd9f140 7048937 python should not die from SIGABRT when user passes bogus fd to os.fstat diff -r e703835db76d -r 18dcd0ca5b0c components/python/python26/patches/Python26-19-ext-stdio.patch --- a/components/python/python26/patches/Python26-19-ext-stdio.patch Wed Jun 01 05:52:48 2011 -0700 +++ b/components/python/python26/patches/Python26-19-ext-stdio.patch Wed Jun 01 08:08:36 2011 -0700 @@ -26,7 +26,7 @@ + (void) getrlimit(RLIMIT_NOFILE, &rlp); + rlp.rlim_cur = rlp.rlim_max; + if (setrlimit(RLIMIT_NOFILE, &rlp) != -1) { -+ enable_extended_FILE_stdio(-1, SIGABRT); ++ enable_extended_FILE_stdio(-1, 0); + } +#endif +