2008/5/30 Shawn Walker <[EMAIL PROTECTED]>: > 2008/5/29 Shawn Walker <[EMAIL PROTECTED]>: >> 2008/5/29 <[EMAIL PROTECTED]>: >>> Hi Shawn, >>>> Once in a while you'll see an error from the shell about resource >>>> unavailable, but no python tracebacks best I can tell. >>> >>> Somebody just filed this as 2083. Do you know if this is related to >>> SIGPIPE or something different? I haven't had a chance to debug this >>> yet, and the bug report lacked a fair amount of detail. >> >> I have added a proposed fix for bug 2083 to this changeset since >> interrupting the client causes this issue as well. >> >> New webrev: >> http://cr.opensolaris.org/~swalker/pkg-115-2/ >> >> diff since last webrev: >> http://cr.opensolaris.org/~swalker/pkg-115-2/raw_files/pkg-115-2.patch >> >> The solution was to use os._exit() when handling a KeyboardInterrupt >> or PipeError and appears to be the result of Python's built-in >> sys.exit behaviour: >> http://docs.python.org/lib/module-exceptions.html#l2h-122 > > Thanks to Krister's further research last night, I know now for > certain that it was Python causing this message. > > Since the new direction seems to be to file and fix this issue in > Python, and not in pkg, I will remove my workaround to suppress this > message later tonight and re-post the new webrev.
Per the earlier discussion, I have removed the workaround for bug 2083 as it is a Python bug, not a pkg bug. I have also removed the unused "errno" import and added a clarifying comment to the exception handling. updated webrev: http://cr.opensolaris.org/~swalker/pkg-115-3/ diff to prior webrev: http://cr.opensolaris.org/~swalker/pkg-115-3/raw_files/pkg-115-3.patch Cheers, -- Shawn Walker _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
