[SOLVED] Re: Cannot get pipes to work with glibmm

2009-10-19 Thread Bastien Dalla Piazza
Hi, Sorry to flood the list with my broken pipes stories but I finally found a way to get this to work! hurray! Here is a solution. The following code just spawn a shell to which you can send commands. #include #include #include #include #include Glib::RefPtr ch_stdout; bool callback(Glib

Re: Cannot get pipes to work with glibmm

2009-10-18 Thread Bastien Dalla Piazza
Hi again, I partially solved my problem: One needs to call Glib::IOChannel::flush() after writing on outgoing pipe for the message to be passed. For the ingoing pipe, it is necessary to add a watch function using for instance Glib::io_signal().connect(sigc::mem_fun(&object,Object::callback),ingoi

Cannot get pipes to work with glibmm

2009-10-17 Thread Bastien Dalla Piazza
Hi, I don't know if this is the correct mailing list so redirect me if not. In a Gtkmm project, I'm using Glib::spawn_async_with_pipes to execute and control a child process (gnugo in the example). But I cannot get it to work! For example: In the following code, I just redirect the gnugo stdin an