Re: Distinguish between G_IO_ERR and G_IO_HUP

2005-05-31 Thread Colossus
Tim Müller wrote: When the child exits, the callback function you passed to g_child_watch_add() is called with the exit status of the child, which will tell you if the child exited with an error or not. On unix, you'll need the macros described in the waitpid manpage to interpret the exit code

Distinguish between G_IO_ERR and G_IO_HUP

2005-05-30 Thread Colossus
Hi, I'm trying to catch the returned error message of the unzip executable with GIOChannel. I use g_spawn_async_with_pipes and then I create a GIOChannel and then i call g_io_add_watch. I run unzip with an incomplete zip file so the have the unzip executable fails with an error message but the

Re: Distinguish between G_IO_ERR and G_IO_HUP

2005-05-30 Thread Tim Müller
On Monday 30 May 2005 13:31, Colossus wrote: I'm trying to catch the returned error message of the unzip executable with GIOChannel. I use g_spawn_async_with_pipes and then I create a GIOChannel and then i call g_io_add_watch. I run unzip with an incomplete zip file so the unzip executable