mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
server: purge shm buffers when terminal is destroyed
This commit is contained in:
parent
8e5d386afc
commit
035ace33b6
1 changed files with 6 additions and 0 deletions
6
server.c
6
server.c
|
|
@ -12,8 +12,11 @@
|
|||
#define LOG_MODULE "server"
|
||||
#define LOG_ENABLE_DBG 1
|
||||
#include "log.h"
|
||||
|
||||
#include "shm.h"
|
||||
#include "terminal.h"
|
||||
#include "tllist.h"
|
||||
#include "wayland.h"
|
||||
|
||||
struct client;
|
||||
struct server {
|
||||
|
|
@ -83,6 +86,9 @@ term_shutdown_handler(void *data, int exit_code)
|
|||
{
|
||||
struct client *client = data;
|
||||
|
||||
shm_purge(client->server->wayl->shm,
|
||||
(unsigned long)(uintptr_t)client->term);
|
||||
|
||||
client_send_exit_code(client, exit_code);
|
||||
|
||||
client->term = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue