Implement --hold

When specified, we don't exit when the slave/client process exits.
This commit is contained in:
Daniel Eklöf 2020-02-03 19:58:32 +01:00
parent 31baf334b3
commit 8f4ec9aa47
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
7 changed files with 36 additions and 12 deletions

View file

@ -340,6 +340,7 @@ struct terminal {
int upper_fd;
} delayed_render_timer;
bool hold_at_exit;
bool is_shutting_down;
void (*shutdown_cb)(void *data, int exit_code);
void *shutdown_data;