[omniORB] omniORBpy, readline and ^C
Gaël Le Mignot
kilobug at freesurf.fr
Tue Oct 21 17:57:48 BST 2003
Hello,
I'm trying to make a command line (shell-like) interface to a CORBA
engine. For that, I use omniORBpy and the Python readline module. But
after initializing the ORB (with CORBA.ORB_init), if the user strikes
^C during the raw_input (from readline), the KeyboardInterrupt
exception is runned twice, and even worse, a call to orb.shutdown
(True) after that makes the Python interpreter to segfault.
I tried to use readline in a multithreaded Python program (without
using omniORB) and it works as excepted: the KeyboardInterrupt is
raised once in the main thread, and other threads still run.
What's really strange is that without readline, raw_input works as
expected, even with the ORB initialized.
I've Python 2.2.3, omniorb 4.0.1 and omniorbpy 2.2, and all those are
running on a Debian GNU/Linux with a 2.4.21 kernel.
--
Gael Le Mignot "Kilobug" - kilobug at nerim.net - http://kilobug.free.fr
GSM : 06.71.47.18.22 (in France) ICQ UIN : 7299959
Fingerprint : 1F2C 9804 7505 79DF 95E6 7323 B66B F67B 7103 C5DA
Member of HurdFr: http://hurdfr.org - The GNU Hurd: http://hurd.gnu.org
More information about the omniORB-list
mailing list