Fixing Valgrind discovered issues.

o Clearing buffer sent via sendmsg.
This commit is contained in:
Marc Singer 2012-04-05 19:43:34 -07:00
parent 7d396c8273
commit f4a9e54dda

View file

@ -1662,7 +1662,7 @@ static void launcherDaemon(int fd) {
// Send file handle and process id back to parent
char cmsg_buf[CMSG_SPACE(sizeof(int))]; // = { 0 }; // Valid initializer makes OSX mad.
cmsg_buf[0] = 0;
memset (cmsg_buf, 0, sizeof (cmsg_buf)); // Quiet complaint from valgrind
struct iovec iov = { 0 };
struct msghdr msg = { 0 };
iov.iov_base = &pid;