mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Wait for job to finish and exit if exec fails.
Obtained from: OpenBSD (Theo de Raadt)
This commit is contained in:
parent
2d3b8b64a8
commit
545b0f4db7
1 changed files with 2 additions and 1 deletions
|
|
@ -98,8 +98,9 @@ wwterminfoend()
|
|||
return -1;
|
||||
case 0:
|
||||
execl(_PATH_RM, _PATH_RM, "-rf", wwterminfopath, 0);
|
||||
return -1;
|
||||
_exit(0);
|
||||
default:
|
||||
wait(NULL);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue