search for: g_spawn_sync

Displaying 8 results from an estimated 8 matches for "g_spawn_sync".

2019 Dec 03
7
[p2v PATCH 0/6] Use GLib a bit more
In an effort to reduce the code, start to use few bits of GLib: - replace the gnulib c-type module - replace the gnulib getprogname module - use g_spawn_sync to launch curl, and drop a file reading function Pino Toscano (6): Include glib.h in p2v.h Use g_ascii_isspace instead of c_isspace from gnulib Use g_get_prgname instead of getprogname from gnulib build: remove no more used gnulib modules Use g_spawn_sync to launch curl Remove whole-fi...
2007 Jul 18
0
12 commits - configure.ac doc/swfdec-sections.txt libswfdec-gtk/swfdec_playback_alsa.c libswfdec/jpeg libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_array.c libswfdec/swfdec_as_boolean.h libswfdec/swfdec_as_context.c
...t_contents ("tmp", string->str, string->len, NULL)) { - char *command[] = { "diff", "-u", (char *) str, "tmp", NULL }; + const char *command[] = { "diff", "-u", str, "tmp", NULL }; char *result; - if (!g_spawn_sync (NULL, command, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, + if (!g_spawn_sync (NULL, (char **) command, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, &result, NULL, NULL, &error)) { g_string_append_printf (output, " ERROR: Could not spawn diff to compare the results: %s\n&quot...
2007 Oct 12
0
problems with java under debian (including the R help page search engine)
...nfo available. #10 0x00000000 in ?? () No symbol table info available. Thread 2 (Thread 0xb4d97b90 (LWP 22844)): #0 0xffffe410 in __kernel_vsyscall () No symbol table info available. #1 0xb7f3114b in waitpid () from /lib/i686/cmov/libpthread.so.0 No symbol table info available. #2 0xb486a624 in g_spawn_sync () from /usr/lib/libglib-2.0.so.0 No symbol table info available. #3 0xb486a93c in g_spawn_command_line_sync () from /usr/lib/libglib-2.0.so.0 No symbol table info available. #4 0xb5019238 in ?? () from /usr/lib/gtk-2.0/modules/libgnomebreakpad.so No symbol table info available. #5 <signal ha...
2007 Jul 02
0
Branch 'as' - 24 commits - configure.ac doc/Makefile.am doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c
...+ g_string_append (output, " ERROR: unexpected trace output\n"); if (g_file_set_contents ("tmp", string->str, string->len, NULL)) { char *command[] = { "diff", "-u", (char *) str, "tmp", NULL }; char *result; if (!g_spawn_sync (NULL, command, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, &result, NULL, NULL, &error)) { - g_printerr (" Couldn't spawn diff to compare the results: %s\n", error->message); + g_string_append_printf (output, + " ERROR: Could not spawn diff to compare the result...
2007 Apr 02
0
4 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_loader.h
...: %s\n", error->message); + loader = swfdec_loader_new_from_file (filename); + if (loader->error) { + g_print (" ERROR: %s\n", loader->error); return FALSE; } string = g_string_new (""); @@ -69,6 +69,7 @@ run_test (const char *filename) if (!g_spawn_sync (NULL, command, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, NULL, NULL, &error)) { g_printerr (" Couldn't spawn diff to compare the results: %s\n", error->message); + g_error_free (error); } } g_string_free (string, TRUE);
2008 Jan 08
0
4 commits - configure.ac test/compiler.c test/.gitignore test/Makefile.am test/swfdec_test.c test/swfdec_test_function.c test/swfdec_test_function.h test/swfdec_test_global.c test/swfdec_test_initialize.as test/swfdec_test_initialize.h
...gt;next) { + const char *s = walk->data; + ssize_t len = strlen (s); + if (write (fd, s, len) != len || + write (fd, "\n", 1) != 1) { + close (fd); + unlink (tmp); + g_free (tmp); + return NULL; + } + } + close (fd); + command[3] = tmp; + if (!g_spawn_sync (NULL, (char **) command, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, + &diff, NULL, NULL, NULL)) { + unlink (tmp); + g_free (tmp); + return NULL; + } + unlink (tmp); + g_free (tmp); + return diff; +} + static void swfdec_test_test_trace_stop (SwfdecTestTest *test) { @@ -58,8 +96,10...
2007 Apr 04
0
Branch 'as' - 17 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_loader.h
...: %s\n", error->message); + loader = swfdec_loader_new_from_file (filename); + if (loader->error) { + g_print (" ERROR: %s\n", loader->error); return FALSE; } string = g_string_new (""); @@ -69,6 +69,7 @@ run_test (const char *filename) if (!g_spawn_sync (NULL, command, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, NULL, NULL, &error)) { g_printerr (" Couldn't spawn diff to compare the results: %s\n", error->message); + g_error_free (error); } } g_string_free (string, TRUE);
2008 Jan 08
0
9 commits - configure.ac test/custom test/Makefile.am test/swfdec_test_initialize.as test/swfdec_test_initialize.h test/swfdec_test_test.c test/trace
...{ - g_string_append (output, " ERROR: unexpected trace output\n"); - if (g_file_set_contents ("tmp", string->str, string->len, NULL)) { - const char *command[] = { "diff", "-u", str, "tmp", NULL }; - char *result; - if (!g_spawn_sync (NULL, (char **) command, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, - &result, NULL, NULL, &error)) { - g_string_append_printf (output, - " ERROR: Could not spawn diff to compare the results: %s\n", - error->message); - g_error_free (error); - } else { - g_string...