Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 71248 Details for
Bug 104705
emerge doesn't print complete error message
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Adds a 1 second timeout after SIGTERM is sent
sigterm-timeout.patch (text/plain), 822 bytes, created by
Jason Stubbs (RETIRED)
on 2005-10-22 23:37:48 UTC
(
hide
)
Description:
Adds a 1 second timeout after SIGTERM is sent
Filename:
MIME Type:
Creator:
Jason Stubbs (RETIRED)
Created:
2005-10-22 23:37:48 UTC
Size:
822 bytes
patch
obsolete
>Index: pym/portage_exec.py >=================================================================== >--- pym/portage_exec.py (revision 2150) >+++ pym/portage_exec.py (working copy) >@@ -4,7 +4,7 @@ > # $Id: /var/cvsroot/gentoo-src/portage/pym/portage_exec.py,v 1.13.2.4 2005/04/17 09:01:56 jstubbs Exp $ > > >-import os,types,atexit,string,stat >+import os,types,atexit,string,stat,time > import signal > import portage_data > import portage_util >@@ -182,7 +182,13 @@ > for x in mypid[0:-1]: > try: > os.kill(x,signal.SIGTERM) >- if os.waitpid(x,os.WNOHANG)[1] == 0: >+ timeout = 100 >+ while timeout: >+ if os.waitpid(x,os.WNOHANG)[1] != 0: >+ break >+ time.sleep(0.01) >+ timeout -= 1 >+ if not timeout: > # feisty bugger, still alive. > os.kill(x,signal.SIGKILL) > os.waitpid(x,0)
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 104705
:
67590
|
71248
|
71258
|
71278
|
73618