Use glib apis for spawning and managing children.