"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "util/compatfd.c" between
qemu-6.0.0-rc1.tar.xz and qemu-6.0.0-rc2.tar.xz

About: QEMU is a generic machine/processor emulator and virtualizer. Release candidate.

compatfd.c  (qemu-6.0.0-rc1.tar.xz):compatfd.c  (qemu-6.0.0-rc2.tar.xz)
skipping to change at line 23 skipping to change at line 23
* GNU GPL, version 2 or (at your option) any later version. * GNU GPL, version 2 or (at your option) any later version.
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "qemu/thread.h" #include "qemu/thread.h"
#if defined(CONFIG_SIGNALFD) #if defined(CONFIG_SIGNALFD)
#include <sys/syscall.h> #include <sys/syscall.h>
#endif #endif
struct sigfd_compat_info struct sigfd_compat_info {
{
sigset_t mask; sigset_t mask;
int fd; int fd;
}; };
static void *sigwait_compat(void *opaque) static void *sigwait_compat(void *opaque)
{ {
struct sigfd_compat_info *info = opaque; struct sigfd_compat_info *info = opaque;
while (1) { while (1) {
int sig; int sig;
skipping to change at line 56 skipping to change at line 55
size_t offset = 0; size_t offset = 0;
memset(&buffer, 0, sizeof(buffer)); memset(&buffer, 0, sizeof(buffer));
buffer.ssi_signo = sig; buffer.ssi_signo = sig;
while (offset < sizeof(buffer)) { while (offset < sizeof(buffer)) {
ssize_t len; ssize_t len;
len = write(info->fd, (char *)&buffer + offset, len = write(info->fd, (char *)&buffer + offset,
sizeof(buffer) - offset); sizeof(buffer) - offset);
if (len == -1 && errno == EINTR) if (len == -1 && errno == EINTR) {
continue; continue;
}
if (len <= 0) { if (len <= 0) {
return NULL; return NULL;
} }
offset += len; offset += len;
} }
} }
} }
} }
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)