--- a/main.c +++ b/main.c @@ -184,7 +184,7 @@ p->gExecShellArgv = NULL; p->gConfFile = FILE_JFBTERM_CONF; p->gConfEncoding = NULL; - + signal(SIGCHLD, sigchld); atexit(tapp_final_at_exit); } --- a/term.h +++ b/term.h @@ -44,7 +44,7 @@ } TTerm; void tterm_start(TTerm* p, const char* tn, const char* en); - +void sigchld(int sig); extern TTerm gTerm; #endif /* INCLUDE_TERM_H */