Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Cleanup on function return is not enough, it needs to be scope exit. We're using this for privilege raising/dropping (example posted above) and also mutex acquisition/release. Both of these really "want" it on the scope level.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: