<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-6666239544818473000.post7479159502053378678..comments</id><updated>2012-01-21T22:32:06.972+01:00</updated><category term='GtkComboBox'/><category term='GtkTreeModel'/><category term='Tips'/><category term='threads'/><category term='GtkLabel'/><category term='GtkDialog'/><category term='Glade'/><category term='GtkTreeView'/><category term='GTK+'/><category term='Maintenance'/><category term='glib'/><category term='tutorial'/><title type='text'>Comments on Bits and pieces: Spawning processes using glib</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.borovsak.si/feeds/7479159502053378678/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/7479159502053378678/comments/default'/><link rel='alternate' type='text/html' href='http://blog.borovsak.si/2009/07/spawning-processes-using-glib.html'/><author><name>Tadej Borovšak</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-V5S0cD-5b_I/AAAAAAAAAAI/AAAAAAAAArU/nAyUYzn6Yx8/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6666239544818473000.post-5637911339877988963</id><published>2011-06-25T09:24:45.270+02:00</published><updated>2011-06-25T09:24:45.270+02:00</updated><title type='text'>Hi. I know this is an old post, but I&amp;#39;m using ...</title><content type='html'>Hi. I know this is an old post, but I&amp;#39;m using it and it is very useful. However, I would like to know something:&lt;br /&gt;Is stdout supposed to update line by line? stderr updates line by line for me, but stdout only updates all 10 lines at once. Not sure why...</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/7479159502053378678/comments/default/5637911339877988963'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/7479159502053378678/comments/default/5637911339877988963'/><link rel='alternate' type='text/html' href='http://blog.borovsak.si/2009/07/spawning-processes-using-glib.html?showComment=1308986685270#c5637911339877988963' title=''/><author><name>onelineproof</name><uri>http://www.blogger.com/profile/14091411443098477641</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.borovsak.si/2009/07/spawning-processes-using-glib.html' ref='tag:blogger.com,1999:blog-6666239544818473000.post-7479159502053378678' source='http://www.blogger.com/feeds/6666239544818473000/posts/default/7479159502053378678' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1638543931'/></entry><entry><id>tag:blogger.com,1999:blog-6666239544818473000.post-1490950684568447741</id><published>2009-09-10T01:02:18.184+02:00</published><updated>2009-09-10T01:02:18.184+02:00</updated><title type='text'>I think I&amp;#39;ve found a better solution.
In the b...</title><content type='html'>I think I&amp;#39;ve found a better solution.&lt;br /&gt;In the beginning of cb_child_watch () we add:&lt;br /&gt;&lt;br /&gt;while (cb_out_watch () || cb_err_watch ());&lt;br /&gt;&lt;br /&gt;I will test that tomorrow.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/7479159502053378678/comments/default/1490950684568447741'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/7479159502053378678/comments/default/1490950684568447741'/><link rel='alternate' type='text/html' href='http://blog.borovsak.si/2009/07/spawning-processes-using-glib.html?showComment=1252537338184#c1490950684568447741' title=''/><author><name>swilmet</name><uri>http://latexila.sourceforge.net/</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.borovsak.si/2009/07/spawning-processes-using-glib.html' ref='tag:blogger.com,1999:blog-6666239544818473000.post-7479159502053378678' source='http://www.blogger.com/feeds/6666239544818473000/posts/default/7479159502053378678' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-725501091'/></entry><entry><id>tag:blogger.com,1999:blog-6666239544818473000.post-167804800328574123</id><published>2009-09-09T19:05:03.577+02:00</published><updated>2009-09-09T19:05:03.577+02:00</updated><title type='text'>Hello,
thank you for the example, it was very usef...</title><content type='html'>Hello,&lt;br /&gt;thank you for the example, it was very useful for me :)&lt;br /&gt;&lt;br /&gt;A little remark, if you want to run a command which outputs a lot of lines in a short time (latex, pdflatex for examples ;), we must add this code after inserting the line into the buffer:&lt;br /&gt;&lt;br /&gt;while (gtk_events_pending ())&lt;br /&gt;    gtk_main_iteration ();&lt;br /&gt;&lt;br /&gt;Without that, the result is ugly and the lines are not inserted directly.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve encountered a strange problem with my program: cb_out_watch () is called several times (~20 times) after the call of cb_child_watch (). Maybe cb_out_watch () run too slowly and then when the command is finished, all the cb_out_watch () are not still executed.&lt;br /&gt;&lt;br /&gt;So what I&amp;#39;ve done is to delete cb_child_watch () and the flag G_SPAWN_DO_NOT_REAP_CHILD. And I moved the instructions of cb_child_watch () into the &amp;quot;if( cond == G_IO_HUP )&amp;quot;. And it works!&lt;br /&gt;&lt;br /&gt;But maybe is there a best solution?&lt;br /&gt;&lt;br /&gt;Sébastien</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/7479159502053378678/comments/default/167804800328574123'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6666239544818473000/7479159502053378678/comments/default/167804800328574123'/><link rel='alternate' type='text/html' href='http://blog.borovsak.si/2009/07/spawning-processes-using-glib.html?showComment=1252515903577#c167804800328574123' title=''/><author><name>swilmet</name><uri>http://latexila.sourceforge.net/</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.borovsak.si/2009/07/spawning-processes-using-glib.html' ref='tag:blogger.com,1999:blog-6666239544818473000.post-7479159502053378678' source='http://www.blogger.com/feeds/6666239544818473000/posts/default/7479159502053378678' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-725501091'/></entry></feed>
