]> git.sur5r.net Git - i3/i3/blobdiff - include/libi3.h
Kill misbehaving subscribed clients instead of hanging
[i3/i3] / include / libi3.h
index ebddee96a49b22008753f66431e92bb3eac0e2a5..d3b407960af9b5fd3e20c03850d0f5123ba2f304 100644 (file)
@@ -166,6 +166,14 @@ int sasprintf(char **strp, const char *fmt, ...);
  */
 ssize_t writeall(int fd, const void *buf, size_t count);
 
+/**
+ * Like writeall, but instead of retrying upon EAGAIN (returned when a write
+ * would block), the function stops and returns the total number of bytes
+ * written so far.
+ *
+ */
+ssize_t writeall_nonblock(int fd, const void *buf, size_t count);
+
 /**
  * Safe-wrapper around writeall which exits if it returns -1 (meaning that
  * write failed)