Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 703925 Details for
Bug 916562
'createrepo -v' deadlocks on large repositories
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Small exaple on how select and readline can still deadlock
tmp.py (text/x-python), 942 bytes, created by
Anders Blomdell
on 2013-02-28 16:40:14 UTC
(
hide
)
Description:
Small exaple on how select and readline can still deadlock
Filename:
MIME Type:
Creator:
Anders Blomdell
Created:
2013-02-28 16:40:14 UTC
Size:
942 bytes
patch
obsolete
>#! /usr/bin/python > >import select >import threading >import os >import time > >def producer(f1, f2): > print>>f1,'File f1', > print>>f2,'File f2', > for n in range(10): > print "Producer",n > print>>f1,"%d %-65536.65536s" % (n, "This will block 1") > print>>f2,"%d %-65536.65536s" % (n, "This will block 2") > time.sleep(1000) > pass > >if __name__ == '__main__': > r1,w1 = os.pipe() > r2,w2 = os.pipe() > r1 = os.fdopen(r1) > r2 = os.fdopen(r2) > t1 = threading.Thread(target=producer, > args=((os.fdopen(w1, 'w'), os.fdopen(w2, 'w')))) > t1.daemon =True > t1.start() > while True: > readable,_,_ = select.select([r1, r2],[],[], 1) > print readable > time.sleep(0.1) > if r1 in readable: > print "Reading r1" > print len(r1.readline()) > if r2 in readable: > print "Reading r2" > print len(r2.readline())
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 916562
:
703876
|
703907
|
703910
| 703925 |
704161
|
704222