mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-17 05:33:52 -04:00
term: don't register ptmx with FDM if we're shutting down
This can happen when there's an error instantiating the terminal *after* we've spawned the slave process.
This commit is contained in:
parent
9864d91975
commit
56d53ec2a1
1 changed files with 4 additions and 2 deletions
|
|
@ -957,8 +957,10 @@ void
|
||||||
term_window_configured(struct terminal *term)
|
term_window_configured(struct terminal *term)
|
||||||
{
|
{
|
||||||
/* Enable ptmx FDM callback */
|
/* Enable ptmx FDM callback */
|
||||||
assert(term->window->is_configured);
|
if (!term->is_shutting_down) {
|
||||||
fdm_add(term->fdm, term->ptmx, EPOLLIN, &fdm_ptmx, term);
|
assert(term->window->is_configured);
|
||||||
|
fdm_add(term->fdm, term->ptmx, EPOLLIN, &fdm_ptmx, term);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue