Re: How does one pipe output from process to text buffer? <-- FIXED
- From: tomas tuxteam de
- To: Tony Freeman <tony freeman insightbb com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: How does one pipe output from process to text buffer? <-- FIXED
- Date: Sun, 31 Dec 2006 05:43:41 +0000
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sat, Dec 30, 2006 at 12:15:33AM -0500, Tony Freeman wrote:
Thanks everyone, I have this working now :-) Special thanks to Tomas!
happy it helped :-)
Still strange that it blocks, though. Perhaps
g_spawn_async_with_pipes(...) gives you channels in blocking mode (I'd
doubt that, but I don't know for sure).
You might try this out e.g. with
g_io_channel_set_flags(gioout,
G_IO_FLAG_NONBLOCK | g_io_channel_get_flags(gioout)),
&err); /* or NULL, if you live on the edge */
right after the gioout = g_io_channel_unix_new(...)
Regards
- -- tomÃs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFFl04NBcgs9XrR2kYRAlG+AJ9LCauFArjjFzraf0GTLQ4Z+6oOUQCdFYt6
US5gnFcIbPS44N0OoxYrvA4=
=8p1T
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]