Skip to content

Conversation

Cobrand
Copy link
Contributor

@Cobrand Cobrand commented Dec 7, 2016

r? @GuillaumeGomez

The doc mentioned to spawn a new thread instead of using catch_unwind, which has been the recommended way to catch panics for foreign function interfaces for a few releases now.

This commit fixes that.

r? @GuillaumeGomez

The doc mentioned to spawn a new thread instead of using catch_unwind, which has been the recommended way to catch panics for foreign function interfaces for a few releases now.
@GuillaumeGomez
Copy link
Member

Indeed, it's way better this way, thanks!

@bors: r+ rollup

@bors
Copy link
Collaborator

bors commented Dec 7, 2016

📌 Commit 614b74c has been approved by GuillaumeGomez

GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Dec 7, 2016
Update book/ffi to use catch_unwind

r? @GuillaumeGomez

The doc mentioned to spawn a new thread instead of using catch_unwind, which has been the recommended way to catch panics for foreign function interfaces for a few releases now.

This commit fixes that.
@bors bors merged commit 614b74c into rust-lang:master Dec 7, 2016
@Cobrand Cobrand deleted the patch-1 branch December 7, 2016 23:05
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.

3 participants