summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gir/gio-2.0.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gir/gio-2.0.c b/gir/gio-2.0.c
index 59d4686b..8f58cb73 100644
--- a/gir/gio-2.0.c
+++ b/gir/gio-2.0.c
@@ -288,6 +288,11 @@
* example if the process was launched via D-Bus). The `pid` may not be
* set at all in subsequent releases.
*
+ * On Windows, `pid` is guaranteed to be valid only for the duration of the
+ * #GAppLaunchContext::launched signal emission; after the signal is emitted,
+ * GLib will call g_spawn_close_pid(). If you need to keep the #GPid after the
+ * signal has been emitted, then you can duplicate `pid` using `DuplicateHandle()`.
+ *
* Since: 2.36
*/