From: <ale...@us...> - 2003-12-11 14:21:54
|
Update of /cvsroot/morphix/langconf/src In directory sc8-pr-cvs1:/tmp/cvs-serv8810/src Modified Files: liblang.c Log Message: nonblocking executing of locale-gen Index: liblang.c =================================================================== RCS file: /cvsroot/morphix/langconf/src/liblang.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** liblang.c 7 Nov 2003 00:41:46 -0000 1.3 --- liblang.c 11 Dec 2003 14:21:50 -0000 1.4 *************** *** 9,15 **** gboolean exec_command (gchar *command) { gchar *outbuffer; - gchar cmdline[256]; gint exitstatus; - debug("Exec: %s\n",command); if (g_spawn_command_line_sync(command,&outbuffer,NULL,&exitstatus,NULL) == FALSE) { --- 9,13 ---- *************** *** 21,24 **** --- 19,32 ---- } + gboolean exec_async_command (gchar *command) { + + debug("Exec async: %s\n",command); + if (g_spawn_command_line_async(command,NULL) == FALSE) { + debug("Error occured executing command\n"); + return FALSE; + } + return TRUE; + } + /* reads the lang from /etc/environment *************** *** 82,86 **** sprintf(cmdline,"/usr/sbin/locale-gen"); ! exec_command(cmdline); return TRUE; } --- 90,94 ---- sprintf(cmdline,"/usr/sbin/locale-gen"); ! exec_async_command(cmdline); return TRUE; } |