Some hooks API changes to fire a hook while waiting another cmdq and

infrastructure that will be needed soon.
This commit is contained in:
nicm
2015-12-15 13:43:07 +00:00
parent 9d88d82d5e
commit ac9778395f
4 changed files with 79 additions and 12 deletions

View File

@ -144,7 +144,7 @@ cmd_attach_session(struct cmd_q *cmdq, int dflag, int rflag, const char *cflag,
if (~c->flags & CLIENT_CONTROL)
proc_send(c->peer, MSG_READY, -1, NULL, 0);
hooks_run(c->session->hooks, "client-attached", c);
hooks_run(c->session->hooks, c, "client-attached");
cmdq->client_exit = 0;
}
recalculate_sizes();