X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;ds=sidebyside;f=gui.c;h=7dab4466beb0e4b1ecb7f5d007ed0f7bf89db9d6;hb=e029f628d427b296d38b399c25662a21795b32fe;hp=f884e8643140fcb0145bb0a7a193a36618e96b9e;hpb=cf1e416e5db97f1673521a63dacaa1487fb875d7;p=paraslash.git diff --git a/gui.c b/gui.c index f884e864..7dab4466 100644 --- a/gui.c +++ b/gui.c @@ -726,10 +726,11 @@ static void init_curses(void) static void check_sigchld(void) { + int ret; pid_t pid; reap_next_child: - pid = para_reap_child(); - if (pid <= 0) + ret = para_reap_child(&pid); + if (ret <= 0) return; if (pid == cmd_pid) { cmd_pid = 0; @@ -917,8 +918,8 @@ repeat: close(audiod_pipe); audiod_pipe = -1; clear_all_items(); - free(stat_content[SI_STATUS_BAR]); - stat_content[SI_STATUS_BAR] = + free(stat_content[SI_BASENAME]); + stat_content[SI_BASENAME] = para_strdup("audiod not running!?"); print_all_items(); }