doc: improve doc of g_subprocess_wait()
authorSébastien Wilmet <swilmet@gnome.org>
Thu, 3 Jul 2014 13:45:11 +0000 (15:45 +0200)
committerSébastien Wilmet <swilmet@gnome.org>
Thu, 3 Jul 2014 18:11:46 +0000 (20:11 +0200)
When using this API, I wasn't sure what the cancellable does. I think
it's generally desirable to kill the subprocess if the wait operation is
cancelled, since in this case the application is no longer interested by
the subprocess.

https://bugzilla.gnome.org/show_bug.cgi?id=732704

gio/gsubprocess.c

index 339b54b..999d777 100644 (file)
@@ -941,6 +941,9 @@ g_subprocess_sync_complete (GAsyncResult **result)
  * This function does not fail in the case of the subprocess having
  * abnormal termination.  See g_subprocess_wait_check() for that.
  *
+ * Cancelling @cancellable doesn't kill the subprocess.  Call
+ * g_subprocess_force_exit() if it is desirable.
+ *
  * Returns: %TRUE on success, %FALSE if @cancellable was cancelled
  *
  * Since: 2.40