函数
GLibChildWatchFunc
描述 [src]
GChildWatchSource 回调的原型,当子进程退出时调用。
若要解释 wait_status,请参阅 g_spawn_check_wait_status() 的文档。尤其在 Unix 平台上,请注意它通常不等于传递给 exit() 或从 main() 返回的整数。
参数
pid-
类型:
GPid子进程的进程 ID。
wait_status-
类型:
gint有关子进程的状态信息,以平台特定的方式编码。
user_data-
类型:
gpointer传递给
g_child_watch_add()的用户数据。参数可以是 NULL。数据由函数的调用者所有。