good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Perl Term::ReadLine::Gnu Signal Handling Difficultiesby Mr. Muskrat (Canon) |
on Nov 13, 2012 at 20:32 UTC ( [id://1003702]=note: print w/replies, xml ) | Need Help?? |
Well, I have been setting up some new servers today (mounting them in the rack, running cables, etc) and haven't have much time to look at this. I did find something interesting though. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=160328 It seems that when Perl's safe signals were introduced, it broke Term::ReadLine::Gnu. Do you need to use Term::ReadLine::Gnu or can you use Term::ReadLine::Perl (where this still works)? If you do need it to use Term::ReadLine::Gnu then perhaps this will work for you. Beware though! It uses unsafe signals so it can cause all sorts of nasty things to happen to the Perl process. Oh and it seems to leave the terminal in an odd state when a signal forces it to bail out.
In Section
Seekers of Perl Wisdom
|
|