hush: add ctrl-Z handling for nofork'ed case

This commit is contained in:
Denis Vlasenko
2007-04-28 16:42:11 +00:00
parent 706fdc98c3
commit a6a1785a30
2 changed files with 84 additions and 13 deletions

View File

@ -61,6 +61,8 @@ int sleep_main(int argc, char **argv)
#endif /* FEATURE_FANCY_SLEEP */
if (sleep(duration)) {
//for hush debugging:
sleep(1);
bb_perror_nomsg_and_die();
}