How to suppress non fatal messages

N

Nene

Hi,
The modules works but it prints out some nonfatal message to the
screen, how do I suppress that?


pty_allocate(nonfatal): posix_openpt(): Success at /usr/lib/perl5/
site_perl/5.8.8/i686-linux/IO/Pty.pm line 24.



pty_allocate(nonfatal): posix_openpt(): Success at /usr/lib/perl5/
site_perl/5.8.8/i686-linux/IO/Pty.pm line 24.
 
I

ilovelinux

Hi,
The modules works but it prints out some nonfatal message to the
screen, how do I suppress that?

pty_allocate(nonfatal): posix_openpt(): Success at /usr/lib/perl5/
site_perl/5.8.8/i686-linux/IO/Pty.pm line 24.

I could not test it, but try enclosing the offending statement in a do-
block with "no warnings":

my $pty = do { no warnings; IO::pty->new() };

This will suppress other, useful warnings as well, so I think this is
a bug in IO/Tty/Tty.xs, see http://cpansearch.perl.org/src/TODDR/IO-Tty-1.10/Tty.xs,
near line 464.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top