diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-06-07 09:18:21 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-06-07 09:19:15 +0200 |
commit | 69a6ce90df7e0f074a714e0938cfd526076e38a3 (patch) | |
tree | 020cabea4e9d81333863c08df232679c1bb2d349 /Kernel/TTY/SlavePTY.cpp | |
parent | 4edc73ad1f38c02be8c0e626f0bacb21215a7ade (diff) | |
download | serenity-69a6ce90df7e0f074a714e0938cfd526076e38a3.zip |
AK: Add a ScopeGuard helper that invokes a callback when destroyed.
This is useful when you want to ensure some little thing happens when you
exit a certain scope.
This patch makes use of it in LibC's netdb code to make sure we close the
connection to the LookupServer.
Diffstat (limited to 'Kernel/TTY/SlavePTY.cpp')
0 files changed, 0 insertions, 0 deletions