127 |
GIOChannel *Lcomerr, *Lcom; |
GIOChannel *Lcomerr, *Lcom; |
128 |
guint Lcomerrevent, Lcomevent; |
guint Lcomerrevent, Lcomevent; |
129 |
gint *Lcont = (gint *)g_hash_table_lookup(Ahash, "cont"); |
gint *Lcont = (gint *)g_hash_table_lookup(Ahash, "cont"); |
130 |
|
gboolean *Labort = (gboolean *) g_hash_table_lookup(Ahash, "gabort"); |
131 |
gchar **Ltmpdir = (gchar **)g_hash_table_lookup(Ahash, "tmpdir"); |
gchar **Ltmpdir = (gchar **)g_hash_table_lookup(Ahash, "tmpdir"); |
132 |
gchar **Lextrapara = (gchar **)g_hash_table_lookup(Ahash, "extrapara"); |
gchar **Lextrapara = (gchar **)g_hash_table_lookup(Ahash, "extrapara"); |
133 |
gint *Lpid = (gint *) g_hash_table_lookup(Ahash, "pid"); |
gint *Lpid = (gint *) g_hash_table_lookup(Ahash, "pid"); |
163 |
|
|
164 |
Lcom = g_io_channel_unix_new( g_out ); |
Lcom = g_io_channel_unix_new( g_out ); |
165 |
g_io_channel_set_encoding (Lcom, NULL, NULL); |
g_io_channel_set_encoding (Lcom, NULL, NULL); |
|
// g_io_channel_set_buffered(Lcom, FALSE); |
|
166 |
g_io_channel_set_flags( Lcom, G_IO_FLAG_NONBLOCK, NULL ); |
g_io_channel_set_flags( Lcom, G_IO_FLAG_NONBLOCK, NULL ); |
167 |
Lcomevent = g_io_add_watch (Lcom, (G_IO_IN | G_IO_HUP | G_IO_ERR | G_IO_PRI), |
Lcomevent = g_io_add_watch (Lcom, (G_IO_IN | G_IO_HUP | G_IO_ERR | G_IO_PRI), |
168 |
mkisofs_makeimage_callback, Ahash); |
mkisofs_makeimage_callback, Ahash); |
169 |
|
|
170 |
Lcomerr = g_io_channel_unix_new( g_err ); |
Lcomerr = g_io_channel_unix_new( g_err ); |
171 |
g_io_channel_set_encoding (Lcomerr, NULL, NULL); |
g_io_channel_set_encoding (Lcomerr, NULL, NULL); |
|
// g_io_channel_set_buffered(Lcomerr, FALSE); |
|
172 |
g_io_channel_set_flags( Lcomerr, G_IO_FLAG_NONBLOCK, NULL ); |
g_io_channel_set_flags( Lcomerr, G_IO_FLAG_NONBLOCK, NULL ); |
173 |
Lcomerrevent = g_io_add_watch (Lcomerr, (G_IO_IN | G_IO_HUP | G_IO_ERR | G_IO_PRI), |
Lcomerrevent = g_io_add_watch (Lcomerr, (G_IO_IN | G_IO_HUP | G_IO_ERR | G_IO_PRI), |
174 |
mkisofs_makeimage_callback, Ahash); |
mkisofs_makeimage_callback, Ahash); |
175 |
_DEB("debut !!"); |
_DEB("debut !!"); |
176 |
while (*Lcont > 0) { |
while (*Lcont > 0 && *Labort == FALSE) { |
177 |
gtk_main_iteration(); |
gtk_main_iteration(); |
178 |
} |
} |
179 |
|
|