term: rename: slave_died() -> fdm_client_terminated()

This commit is contained in:
Daniel Eklöf 2021-07-31 18:27:02 +02:00
parent 384b1c330f
commit c23bff4189
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -982,7 +982,8 @@ load_fonts_from_conf(struct terminal *term)
return reload_fonts(term); return reload_fonts(term);
} }
static void slave_died(struct reaper *reaper, pid_t pid, int status, void *data); static void fdm_client_terminated(
struct reaper *reaper, pid_t pid, int status, void *data);
struct terminal * struct terminal *
term_init(const struct config *conf, struct fdm *fdm, struct reaper *reaper, term_init(const struct config *conf, struct fdm *fdm, struct reaper *reaper,
@ -1196,7 +1197,7 @@ term_init(const struct config *conf, struct fdm *fdm, struct reaper *reaper,
goto err; goto err;
} }
reaper_add(term->reaper, term->slave, &slave_died, term); reaper_add(term->reaper, term->slave, &fdm_client_terminated, term);
/* Guess scale; we're not mapped yet, so we don't know on which /* Guess scale; we're not mapped yet, so we don't know on which
* output we'll be. Pick highest scale we find for now */ * output we'll be. Pick highest scale we find for now */
@ -1291,8 +1292,8 @@ term_window_configured(struct terminal *term)
* completed. When it determines that *both* tasks are done, it calls * completed. When it determines that *both* tasks are done, it calls
* term_destroy() and the user provided shutdown callback. * term_destroy() and the user provided shutdown callback.
* *
* - slave_died(): reaper callback, called when the client application has * - fdm_client_terminated(): reaper callback, called when the client
* terminated. * application has terminated.
* *
* + Kills the terminate timeout timer * + Kills the terminate timeout timer
* + Calls shutdown_maybe_done() if the shutdown procedure has already * + Calls shutdown_maybe_done() if the shutdown procedure has already
@ -1355,7 +1356,7 @@ shutdown_maybe_done(struct terminal *term)
} }
static void static void
slave_died(struct reaper *reaper, pid_t pid, int status, void *data) fdm_client_terminated(struct reaper *reaper, pid_t pid, int status, void *data)
{ {
struct terminal *term = data; struct terminal *term = data;
LOG_DBG("slave (PID=%u) died", pid); LOG_DBG("slave (PID=%u) died", pid);