From f6533a71e4996f2f4cd45336966cebf6c3f34b1e Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Thu, 30 Jul 2020 18:57:21 +0200 Subject: user-notification: 'productify' the user-warning system * Rename user_warning to user_notification * Add warning and error types (in addition to the existing deprecated) * Simplify logic when emitting a user notification after forking; we don't need to copy the notification data since we're in a new process and have total control over that memory. --- terminal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'terminal.c') diff --git a/terminal.c b/terminal.c index 6b8ed69d..85dde554 100644 --- a/terminal.c +++ b/terminal.c @@ -944,7 +944,7 @@ term_init(const struct config *conf, struct fdm *fdm, struct reaper *reaper, if ((term->slave = slave_spawn( term->ptmx, argc, term->cwd, argv, conf->term, conf->shell, conf->login_shell, - &conf->warnings)) == -1) + &conf->notifications)) == -1) { goto err; } -- cgit v1.3