Home
last modified time | relevance | path

Searched refs:exempt_fd (Results 1 – 6 of 6) sorted by relevance

/dports/x11-wm/i3/i3-4.20.1/include/
H A Dipc.h105 void ipc_shutdown(shutdown_reason_t reason, int exempt_fd);
/dports/x11-wm/i3-gaps/i3-4.20.1/include/
H A Dipc.h105 void ipc_shutdown(shutdown_reason_t reason, int exempt_fd);
/dports/x11-wm/i3/i3-4.20.1/src/
H A Dcommands.c1709 int exempt_fd = -1; in cmd_restart() local
1711 exempt_fd = cmd_output->client->fd; in cmd_restart()
1712 LOG("Carrying file descriptor %d across restart\n", exempt_fd); in cmd_restart()
1714 if ((flags = fcntl(exempt_fd, F_GETFD)) < 0 || in cmd_restart()
1715 fcntl(exempt_fd, F_SETFD, flags & ~FD_CLOEXEC) < 0) { in cmd_restart()
1716 ELOG("Could not disable FD_CLOEXEC on fd %d\n", exempt_fd); in cmd_restart()
1719 sasprintf(&fdstr, "%d", exempt_fd); in cmd_restart()
1722 ipc_shutdown(SHUTDOWN_REASON_RESTART, exempt_fd); in cmd_restart()
H A Dipc.c117 static void free_ipc_client(ipc_client *client, int exempt_fd) { in free_ipc_client() argument
118 if (client->fd != exempt_fd) { in free_ipc_client()
192 void ipc_shutdown(shutdown_reason_t reason, int exempt_fd) { in ipc_shutdown() argument
198 if (current->fd != exempt_fd) { in ipc_shutdown()
201 free_ipc_client(current, exempt_fd); in ipc_shutdown()
/dports/x11-wm/i3-gaps/i3-4.20.1/src/
H A Dcommands.c1709 int exempt_fd = -1; in cmd_restart() local
1711 exempt_fd = cmd_output->client->fd; in cmd_restart()
1712 LOG("Carrying file descriptor %d across restart\n", exempt_fd); in cmd_restart()
1714 if ((flags = fcntl(exempt_fd, F_GETFD)) < 0 || in cmd_restart()
1715 fcntl(exempt_fd, F_SETFD, flags & ~FD_CLOEXEC) < 0) { in cmd_restart()
1716 ELOG("Could not disable FD_CLOEXEC on fd %d\n", exempt_fd); in cmd_restart()
1719 sasprintf(&fdstr, "%d", exempt_fd); in cmd_restart()
1722 ipc_shutdown(SHUTDOWN_REASON_RESTART, exempt_fd); in cmd_restart()
H A Dipc.c117 static void free_ipc_client(ipc_client *client, int exempt_fd) { in free_ipc_client() argument
118 if (client->fd != exempt_fd) { in free_ipc_client()
192 void ipc_shutdown(shutdown_reason_t reason, int exempt_fd) { in ipc_shutdown() argument
198 if (current->fd != exempt_fd) { in ipc_shutdown()
201 free_ipc_client(current, exempt_fd); in ipc_shutdown()