Use add/delete_read_fd in xsmfns to simplify. Also restart with initial_argv.