473,320 Members | 1,921 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

socket and Ctl-C workaround?

I've been trying to figure out why Ctl-C sometimes doesn't interrupt
yum. It appears to be unresolved Python bug 926423, unresolved proposed
patch 1102879, don't know if anything ever came of it. Note that I
cannot ask all yum users to apply the patch. I'm not sure I should be
getting rid of the timeout, either.

When a Ctl-C is lost, sometimes it is silently eaten, and other times it
becomes socket.error(11,...) (EWOULDBLOCK). As (AFAICT) the socket in
question is a blocking socket, I could use that nonsense exception to
detect at least some of the lost Ctl-Cs (eww). The socket does have a
timeout.

Note that I am using FC5 Linux, Python 2.4.2.
__________________________________________________ ______________________
TonyN.:' *firstname*nlsnews@georgea*lastname*.com
' <http://www.georgeanelson.com/>
Jun 15 '06 #1
0 944

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ike | last post by:
I have a combobox on an activex ctl file, (TobulControl.ctl). I have a button on the ctl file too, and when the button is pressed, a dialog box opens. Within the code of this dialog box, I refer to...
8
by: simon place | last post by:
Spent some very frustrating hours recoding to find a way of closing a server socket, i'd not thought it would be any problem, however, after complete failure and as a last resort, i looked at the...
1
by: gilgantic | last post by:
Is there anyway of eliminating duplicate entries as the database loads data using SQLLDR and/or .ctl (Control File)? I use the following command line using SQLLDR and a control file to load my...
4
by: DreJoh | last post by:
I've read many articles on the subject and the majority of them give the same solution that's in article 821625 on the MSDN website. I'm using the following code and when a the client disconnects...
4
by: Chris Tanger | last post by:
Context: C# System.Net.Sockets Socket created with constructor prarmeters Internetwork, Stream and TCP everything else is left at the default parameters and options except linger may be changed...
3
by: Antony | last post by:
Hi friends, I have the following code in an MDI container (with 3 MDI forms/children) with a button on the MDI container form. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e...
0
by: G.Ashok | last post by:
Hi, I just installed VS.Net 2003 and upgraded my project to 2003. Immediately found the following new behavior which causes my solution working erratic. In the leave event of a control (e.g....
2
by: Paul | last post by:
I have a MDI form which hosts numerous MdiChildren forms. I want to prevent the users from toggling to other MdiChildren forms. The program allows it by pressing Ctl+F6 or Ctl+Tab. In the MDI...
0
by: Macca | last post by:
Hi, I am writing an asychronous socket server to handle 20+ simulataneous connections. I have used the example in MSDN as a base. The code is shown at end of question. Each connection has a...
0
by: Gary Brown | last post by:
Hi, I have implemented Cut item in a ListView with Ctl-X as the shortcut key. Unfortunately this supercedes Ctl-X when used to edit a label. What is the easiest way around this? The Ctl-X is...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.