Re: Newbie problems using g_spawn_async_with_pipes and watching for IO

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 02/19/2013 08:28 PM, Will Orr wrote:
> Here[1] is the problematic code.
> 
> I'm trying to run a command and gather the output and return code.
> I do this by watching for the process to return, as well as waiting
> for the channels to HUP. However, my callbacks never get called
> with cond set to G_IO_HUP, even after the process terminates. Nor
> do any of the g_io_channel_read_* calls return errors. This seems
> inconsistent with the documentation, as well as examples that I've
> found in the hours of researching this problem.

Is the program you are running forking off a background process?  That
would signal that the parent process exited, while the children
continue to run in the background, keeping the pipes open.



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iQEcBAEBAgAGBQJRJuSuAAoJEJrBOlT6nu75NX4H/3467RVcQ0C7AiY08Bt8BfFg
zyNPLool68YBkuT57aGEMOB0I7dhJMGCaoVqdkaDBXhkoLTLxiUqrxzzHtZvXWjf
j09nDrxGCNI+VBAD9f+11MwZXOzCeHuQevZQzHYnroCNg3xC9muQwXBd/8VYWSVg
pyA/PJofvJ4LlhTRGCatzW/c1ASJhNxdaUi05kMF6JBbxp5Ke0ySzBFC3wO75KXh
6/lHLoTGQG59mvjUtlRmQtWvhtWSn8lgFXBAIRccyANbInxLq3cNOe7ZUaNZQbm/
ZkZ1GVQeYv74N6mqV+V3Agmtor8fwoK9+e0UIfD+uhj0e3lyN0eZO3mMnq1uG1g=
=PRUd
-----END PGP SIGNATURE-----
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux