diff options
| author | sewn <sewn@disroot.org> | 2025-02-05 11:23:17 +0000 |
|---|---|---|
| committer | sewn <sewn@disroot.org> | 2025-02-05 11:23:17 +0000 |
| commit | 8de378963b90bca1bc932c094a78c683d01019aa (patch) | |
| tree | 6e6b0cd49bc3b60479c411aa8c18b6e8e8bc690d /server.c | |
| parent | term: ptmx pause/resume: don't modify the FDM if ptmx has been closed (diff) | |
server: don't instantiate a client without a monitor
Diffstat (limited to 'server.c')
| -rw-r--r-- | server.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -211,6 +211,12 @@ fdm_client(struct fdm *fdm, int fd, int events, void *data) return true; } + if (tll_length(server->wayl->monitors) == 0) { + LOG_ERR("no monitors available for new terminal"); + client_send_exit_code(client, -26); + goto shutdown; + } + /* All initialization data received - time to instantiate a terminal! */ xassert(client->instance == NULL); |
