Call to custom signal handler fails with "`const_missing': uninitialized
constant TOP_LEVEL_BINDING (NameError)"
----------------------------------------------------------------------------------------------------------------
Key: JRUBY-4283
URL: http://jira.codehaus.org/browse/JRUBY-4283
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.4
Environment: Linux 2.6.24-25-server #1 SMP x86_64 GNU/Linux
ISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu 8.04.3 LTS"
Reporter: Henrique Manuel Lindgren Amaral Fernandes
Assignee: Thomas E Enebo
Running the following script and pressing CRTL+C results in the following error
message being printed to the terminal, instead of "hello handler":
Script:
#!/usr/bin/env jruby
def handler
puts 'hello handler'
end
trap("INT", "handler")
sleep
Output:
:1:in `const_missing': uninitialized constant TOP_LEVEL_BINDING (NameError)
from jsignal:28:in `__jtrap'
from :1:in `call'
from :1
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email