Re: non blocking pipe
* Spocchio <[EMAIL PROTECTED]> [2008-03-23 19:40]: > i'm writing a gui tool, I need to open a non blocking pipe in > read mode, to avoid the block of the gui when the stream become > slow.. 1. Wrong list. http://mail.gnome.org/mailman/listinfo/gtk-perl-list 2. Your question is a Gtk2-Perl FAQ. http://tinyurl.com/2uk5m5#head-20b1c1d3a92f0c61515cb88d15e06b686eba6cbc Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/>
non blocking pipe
From: Bob Rogers <[EMAIL PROTECTED]> Date: Sun, 23 Mar 2008 15:53:51 -0400 From: Spocchio <[EMAIL PROTECTED]> Date: Sun, 23 Mar 2008 09:10:42 -0700 (PDT) Hi, i'm writing a gui tool, I need to open a non blocking pipe in read mode, to avoid the block of the gui when the stream become slow.. Is it possible to open a non blocking pipe in read mode whitout using threads or fork()? I like simple things, i only need something return me undef is there is no input, IIUC, it's the read operation, not the open, that is nonblocking. You might want to look at IO::Select. And this is OT, since this list is for Perl 6, not Perl 5. (I had thought I was replying to something on boston-pm. ) -- Bob
non blocking pipe
From: Spocchio <[EMAIL PROTECTED]> Date: Sun, 23 Mar 2008 09:10:42 -0700 (PDT) Hi, i'm writing a gui tool, I need to open a non blocking pipe in read mode, to avoid the block of the gui when the stream become slow.. Is it possible to open a non blocking pipe in read mode whitout using threads or fork()? I like simple things, i only need something return me undef is there is no input, IIUC, it's the read operation, not the open, that is nonblocking. You might want to look at IO::Select. -- Bob Rogers http://rgrjr.dyndns.org/
non blocking pipe
Hi, i'm writing a gui tool, I need to open a non blocking pipe in read mode, to avoid the block of the gui when the stream become slow.. Is it possible to open a non blocking pipe in read mode whitout using threads or fork()? I like simple things, i only need something return me undef is there is no input, $smwID = open( STREAM, $command . '|'); Glib::Timeout->add(100, sub { if($line = nonblocking_read(STREAM) { # process the line only if the program send something, # if i use a blocking reading like $line= ; # the entry gui will get blocked until the output come } } );