implement "socket activation": passing IPC sockets to i3

This commit is contained in:
Michael Stapelberg
2011-08-10 15:55:27 +02:00
parent 6b1dce27f7
commit 10f871b57b
4 changed files with 719 additions and 1 deletions

View File

@ -678,7 +678,7 @@ void ipc_new_client(EV_P_ struct ev_io *w, int revents) {
ev_io_init(package, ipc_receive_message, client, EV_READ);
ev_io_start(EV_A_ package);
DLOG("IPC: new client connected\n");
DLOG("IPC: new client connected on fd %d\n", w->fd);
ipc_client *new = scalloc(sizeof(ipc_client));
new->fd = client;