core: Use new libgsystem GSSubprocess API

It's less screwing around with GPtrArray in most cases.
This commit is contained in:
Colin Walters committed 2012-12-21 11:52:28 -05:00
1 parent b3d8c8c0e5
commit 19df2d372d
8 files changed
+44 -94

No files matched your search

-25
View File
@@ -26,31 +26,6 @@
#include <string.h>
gboolean
ot_spawn_sync_checked (const char *cwd,
char **argv,
GCancellable *cancellable,
GError **error)
{
gboolean ret = FALSE;
gs_unref_object GSSubprocessContext *context = NULL;
gs_unref_object GSSubprocess *proc = NULL;
context = gs_subprocess_context_new (argv);
if (cwd)
gs_subprocess_context_set_cwd (context, cwd);
if ((proc = gs_subprocess_new (context, cancellable, error)) == NULL)
goto out;
if (!gs_subprocess_wait_sync_check (proc, cancellable, error))
goto out;
ret = TRUE;
out:
return ret;
}
/**
* ot_thread_pool_new_nproc:
*