Skip to content

Fix swift driver hanging on SIGINT by adding timeout forced exit#1998

Open
rjmansfield wants to merge 1 commit into
swiftlang:mainfrom
rjmansfield:add-sigint-timeout
Open

Fix swift driver hanging on SIGINT by adding timeout forced exit#1998
rjmansfield wants to merge 1 commit into
swiftlang:mainfrom
rjmansfield:add-sigint-timeout

Conversation

@rjmansfield
Copy link
Copy Markdown
Contributor

When users interrupt swift driver with ctrl+c, the llbuild engine.build() call can hang indefinitely even after child processes are terminated. Add a two second timeout to force exit if graceful termination fails.

Resolves #1798

When users interrupt swift driver with ctrl+c, the llbuild engine.build()
call can hang indefinitely even after child processes are terminated.
Add a two second timeout to force exit if graceful termination fails.

Resolves swiftlang#1798
@rjmansfield
Copy link
Copy Markdown
Contributor Author

@swift-ci please test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to SIGINT swift-driver when reading from stdin

1 participant