+#ifdef G_OS_UNIX
+ {
+ const char *slave_fd_env = g_getenv ("_G_TEST_SLAVE_FD");
+ if (slave_fd_env)
+ {
+ int slave_fd = atoi (slave_fd_env);
+ fcntl (slave_fd, F_SETFD, FD_CLOEXEC);
+ g_io_add_watch (g_io_channel_unix_new (slave_fd), G_IO_HUP | G_IO_ERR,
+ on_monitor_fd_io, NULL);
+ }
+ }
+#endif
+
+ app = g_application_unregistered_try_new ("org.gtk.test.app",
+ argc, argv, NULL);