extern int shell_main(struct lgsm_handle *lgsmh, int sync); extern int pending_responses;