#include <gio/gio.h>

int main (int argc, char *argv[])
{
  GSubprocess *proc;
  GSubprocessFlags flags = G_SUBPROCESS_FLAGS_NONE;
  GError *error = NULL;

  proc = g_subprocess_new (flags, &error, "make", "-j12", NULL);
  g_assert_no_error (error);
  g_assert (proc);

  g_usleep (G_USEC_PER_SEC);

  g_print ("Killing\n");

  g_subprocess_force_exit (proc);

  g_print ("Sleeping\n");

  g_usleep (G_USEC_PER_SEC * 100);

  g_print ("Done\n");

  return 0;
}
