Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 88985 Details for
Bug 136404
[Errno 9] Bad file descriptor during renaming of a package in /var/db/pkg
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
test case that closes stdin
bad_file_descriptor.py (text/plain), 356 bytes, created by
Zac Medico
on 2006-06-12 10:18:41 UTC
(
hide
)
Description:
test case that closes stdin
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2006-06-12 10:18:41 UTC
Size:
356 bytes
patch
obsolete
>#!/usr/bin/env python > >import os, tempfile, portage_exec >from portage import * > > >fd, filename = tempfile.mkstemp() >dest_filename = "%s.%i" % (filename, os.getpid()) > >os.close(sys.stdin.fileno()) >retval = portage_exec.spawn((MOVE_BINARY, filename, dest_filename), env=os.environ) > >if retval == os.EX_OK: > os.unlink(dest_filename) >else: > os.unlink(filename)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 136404
: 88985