| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
| |
Previously, the success of `getline` was tested by checking if the
buffer it allocates is nonempty and has a nonzero first byte. As
`getline` does not explicitly zero out its memory buffer, this may
fail (e.g., with AddressSanitizer). Instead, we check that at least one
character was returned on standard output.
Also, trailing newlines (if present) are now removed.
|
| |
|
| |
|
|
|
|
|
| |
All occurrences of read_line have been replaced by getline.
peek_line has been absorbed into detect_brace.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
| |
Also modifies IPC client so that we can work with persistent
connections.
|
|
|