search for: 05177ca

Displaying 3 results from an estimated 3 matches for "05177ca".

2015 Oct 05
1
[PATCH] lib: include <sys/socket.h> for accept4
...citly pulled by something else on Linux, it is not when building on e.g. FreeBSD. This reverts the change to this file of commit 3b17152ec399acb35b23331d2c3b4f424a68824a. --- src/conn-socket.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/conn-socket.c b/src/conn-socket.c index a935cc4..05177ca 100644 --- a/src/conn-socket.c +++ b/src/conn-socket.c @@ -28,6 +28,7 @@ #include <errno.h> #include <poll.h> #include <sys/stat.h> +#include <sys/socket.h> /* accept4 */ #include <sys/types.h> #include <assert.h> #include <libintl.h> -- 2.1.0
2016 Mar 06
8
[PATCH 0/5] Use less stack.
Various changes/fixes to use smaller stack frames. Rich.
2016 Mar 07
2
[PATCH v2] Use less stack.
...pass it to the callback. */ - n = read (cmd->outfd, buf, sizeof buf); + n = read (cmd->outfd, buf, BUFSIZ); if (n > 0) { if (cmd->outbuf.add_data) cmd->outbuf.add_data (cmd, buf, n); diff --git a/src/conn-socket.c b/src/conn-socket.c index 05177ca..5b6b80e 100644 --- a/src/conn-socket.c +++ b/src/conn-socket.c @@ -312,7 +312,7 @@ static int handle_log_message (guestfs_h *g, struct connection_socket *conn) { - char buf[BUFSIZ]; + CLEANUP_FREE char *buf = safe_malloc (g, BUFSIZ); ssize_t n; /* Carried over from...