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

With this change, I believe pkg should be much friendlier now.

Cheers,
-- 
Shawn Walker

"To err is human -- and to blame it on a computer is even more so." -
Robert Orben
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to