/[graveman]/graveman/current/src/mkisofs.c
ViewVC logotype

Diff of /graveman/current/src/mkisofs.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by scresto, Tue Jan 25 03:32:12 2005 UTC revision 1.4 by scresto, Tue Feb 1 02:35:19 2005 UTC
# Line 127  gboolean make_iso(GHashTable *Ahash, GEr Line 127  gboolean make_iso(GHashTable *Ahash, GEr
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");
# Line 162  gboolean make_iso(GHashTable *Ahash, GEr Line 163  gboolean make_iso(GHashTable *Ahash, GEr
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    

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26