(child_setup): Always use _exit.
This commit is contained in:
parent
92280f6793
commit
20b25e46b6
1 changed files with 1 additions and 1 deletions
|
@ -627,7 +627,7 @@ child_setup (in, out, err, new_argv, set_pgrp, current_dir)
|
|||
are changed between the check and this chdir, but we should
|
||||
at least check. */
|
||||
if (chdir (temp) < 0)
|
||||
exit (errno);
|
||||
_exit (errno);
|
||||
|
||||
/* Strip trailing slashes for PWD, but leave "/" and "//" alone. */
|
||||
while (i > 2 && temp[i - 1] == '/')
|
||||
|
|
Loading…
Add table
Reference in a new issue