- patch from Denis Vlasenko to add and use bb_xchdir()

This commit is contained in:
Bernhard Reutner-Fischer
2006-04-12 18:39:58 +00:00
parent 67f641e75b
commit d9cf7ac781
12 changed files with 46 additions and 62 deletions

View File

@ -197,9 +197,7 @@ int crond_main(int ac, char **av)
* change directory
*/
if (chdir(CDir) != 0) {
bb_perror_msg_and_die("%s", CDir);
}
bb_xchdir(CDir);
signal(SIGHUP, SIG_IGN); /* hmm.. but, if kill -HUP original
* version - his died. ;(
*/