summaryrefslogtreecommitdiff
path: root/common/ipc-client.c
AgeCommit message (Collapse)AuthorLines
2016-12-15Handle malloc failure in ipc_recv_responseDrew DeVault-0/+13
2016-09-01Reorganize includesDrew DeVault-7/+4
2016-08-30Fix to make ipc client code FreeBSD compatible.Johannes Lundberg-1/+1
2016-05-01common: fix potential buffer overflowEric Engestrom-1/+2
2016-03-22Abort when receiving 0 bytes in IPC callMikkel Oscar Lyderik-1/+1
When sway crashes a swaybar process is sometimes left behind running at 100% CPU. This was caused by the swaybar trying to retrieve an IPC response from the closed sway socket. This patch fixes the problem by aborting when the socket has been closed (recv return 0). Fix #528
2016-01-03Add type to returned response.Mikkel Oscar Lyderik-7/+21
Makes `ipc_recv_response` return a struct with size, type and payload rather than just the payload string. This is useful if the type has to be checked on the client.
2015-12-13Subscribe to workspace change events and redrawDrew DeVault-12/+19
2015-11-28Fix incorrect #include on ipc-client.cDrew DeVault-1/+1
2015-11-27Add command line to swaygrabDrew DeVault-10/+11
Also modifies IPC client so that we can work with persistent connections.
2015-11-27Move IPC client into common, refactor IPCDrew DeVault-0/+78