4.1 GChildWatchFunc

Callback: GChildWatchFunc

A procedure given for it is called as (procedure pid wait-status).

Prototype of a GChildWatchSource callback, called when a child process has exited.

To interpret wait-status, see the documentation for spawn-check-wait-status?. In particular, on Unix platforms, note that it is usually not equal to the integer passed to exit() or returned from main().

pid

Passed: a 32-bit integer.

the process id of the child process

wait-status

Passed: a 32-bit integer.

Status information about the child process, encoded in a platform-specific manner

user-data

Not passed: it is the user data that guile-gi supplied.

user data passed to child-watch-add