On Thu, 2005-08-04 at 16:00 -0300, John Coppens wrote: > Hello all. > > Could someone please indicate what I doing wrong, or indicate some > example of g_spawn_async_with_pipes where both channels are redirected?
Just an aside, but would it help to remember that printf output is buffered, and that you might want to change the little program below to add an fflush(stdout) after the printf()? > > Thanks in advance! > John > > > #include <stdio.h> > #include <string.h> > > int > main(void) > { > FILE *logf; > char bff[80]; > > > printf("Here we are with the simple program\n"); > > do { > fgets(bff, 80, stdin); > bff[strlen(bff)-1] = '\0'; > printf("cmd: [%s]\n", bff); > } while (bff[0] != 'x'); > } > _______________________________________________ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list