rust-users icon indicating copy to clipboard operation
rust-users copied to clipboard

Problems with switch_user_group when multi-threaded

Open ChrisGreenaway opened this issue 3 years ago • 0 comments

If one thread calls switch_user_group and gets a guard, a simple assumption about the API would be that the user / group will be set to the values given in the switch_user_group call whilst the guard is in scope. However, that's not true because another thread could call switch_user_group.

ChrisGreenaway avatar Mar 25 '21 11:03 ChrisGreenaway