LibIPC: Add an expressive way to close an IPC::File after sending it

If you don't need a file descriptor after sending it to someone over
IPC, construct it with IPC::File(fd, IPC::File::CloseAfterSending)
and LibIPC will take care of it for you. :^)
This commit is contained in:
Andreas Kling 2021-01-14 09:39:30 +01:00
commit f1f7bf567b
Notes: sideshowbarker 2024-07-18 23:52:15 +09:00
4 changed files with 3 additions and 7 deletions

View file

@ -45,8 +45,6 @@ public:
virtual const char* message_name() const = 0;
virtual MessageBuffer encode() const = 0;
Function<void()> on_destruction;
protected:
Message();
};