mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-07 04:06:07 -05: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)
|
||||
{
|
||||
/* Enable ptmx FDM callback */
|
||||
assert(term->window->is_configured);
|
||||
fdm_add(term->fdm, term->ptmx, EPOLLIN, &fdm_ptmx, term);
|
||||
if (!term->is_shutting_down) {
|
||||
assert(term->window->is_configured);
|
||||
fdm_add(term->fdm, term->ptmx, EPOLLIN, &fdm_ptmx, term);
|
||||
}
|
||||
}
|
||||
|
||||
static bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue