-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WARNING: This is an experimental fix for the race conditions reported at ksh93#79 and att#468. There may be bugs that have not yet been caught. This patch replaces usage of posix_spawn with vfork, since the former is prone to race conditions. src/lib/libast/features/lib, src/lib/libast/comp/spawnveg.c: - Remove the posix_spawn implementation of spawnveg. - Set the terminal process group between fork/vfork and execve to fix a race condition. src/cmd/ksh93/sh/xec.c: - Set the terminal process group on error to fix a vfork(2) lockup and crash with fork(2); both occured after the to the spawnveg fix.
- Loading branch information
Showing
3 changed files
with
14 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters