Project

General

Profile

Actions

Bug #4608

closed

Ctrl-c to interrupt script causes hang and 100% cpu's core load

Added by ralovets (Roman Ralovets) almost 13 years ago. Updated almost 13 years ago.

Status:
Third Party's Issue
Assignee:
-
Target version:
ruby -v:
ruby 1.9.2p180 (2011-02-18 revision 30909) [i686-linux]
Backport:
[ruby-core:35869]

Description

=begin
I have got this bug after updating Ubuntu from 10.10 to 11.04 Beta.
Using shell commands like echo anything causes hang and 100% cpu's core load, if during downloading a file you press ctrl-c to interrupt.
Without using shell commands all right, we get "^CInterrupted"
In the Ubuntu 10.10 all right.
For a wonder autotest have got the same problem after updating ubuntu to 11.04 Beta: if I press ctrl-c to close autotest it hangs and loads 100% cpu's core

roma@roma-comp:~/downloader$ ruby test.rb
Getting a file .. waiting for ctrl-c
^C^C^C

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
13159 roma 20 0 14052 8556 2568 R 100 0.4 1:52.68 ruby test.rb


I'm waiting for such a result:

roma@roma-comp:~/downloader$ ruby test.rb
Getting a file .. waiting for ctrl-c
^CInterrupted

=end


Files

test.rb (379 Bytes) test.rb ralovets (Roman Ralovets), 04/25/2011 04:08 AM

Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #4777: Ruby 1.9.2-p180 ignoring INT, TERM, and QUIT until it receives CONTThird Party's Issue05/25/2011Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0