search for: childfd

Displaying 6 results from an estimated 6 matches for "childfd".

Did you mean: child_fd
2007 Apr 18
1
[PATCH] Lguest launcher, child starving parent
...d(), SIGUSR1); + /* wait for parent response */ + if (read(pipefd, &ignorefd, sizeof(ignorefd)) == 0) + exit(0); + if (ignorefd >= 0) + FD_CLR(ignorefd, &devices->infds); } } @@ -594,6 +594,7 @@ static void handle_output(int fd, unsign static void handle_input(int fd, int childfd, struct device_list *devices) { struct timeval poll = { .tv_sec = 0, .tv_usec = 0 }; + int fdok = -1; for (;;) { struct device *i; @@ -608,7 +609,9 @@ static void handle_input(int fd, int chi FD_CLR(i->fd, &devices->infds); /* Tell child to ignore it too... */...
2007 Apr 18
1
[PATCH] Lguest launcher, child starving parent
...d(), SIGUSR1); + /* wait for parent response */ + if (read(pipefd, &ignorefd, sizeof(ignorefd)) == 0) + exit(0); + if (ignorefd >= 0) + FD_CLR(ignorefd, &devices->infds); } } @@ -594,6 +594,7 @@ static void handle_output(int fd, unsign static void handle_input(int fd, int childfd, struct device_list *devices) { struct timeval poll = { .tv_sec = 0, .tv_usec = 0 }; + int fdok = -1; for (;;) { struct device *i; @@ -608,7 +609,9 @@ static void handle_input(int fd, int chi FD_CLR(i->fd, &devices->infds); /* Tell child to ignore it too... */...
2007 Apr 18
0
[RFC/PATCH LGUEST X86_64 07/13] lguest64 loader
...>dev; i; i = i->next) { + if (i->handle_output && addr == i->watch_address) { + *lenp = i->handle_output(fd, iov, num, i); + return 0; + } + } + warnx("Pending dma %p, addr %p", (void *)dma, (void *)addr); + return 0; +} + +static void handle_input(int fd, int childfd, struct devices *devices) +{ + struct timeval poll = { .tv_sec = 0, .tv_usec = 0 }; + + for (;;) { + struct device *i; + fd_set fds = devices->infds; + + if (select(devices->max_infd+1, &fds, NULL, NULL, &poll) == 0) + break; + + for (i = devices->dev; i; i = i->next) { +...
2007 Apr 18
0
[RFC/PATCH LGUEST X86_64 07/13] lguest64 loader
...>dev; i; i = i->next) { + if (i->handle_output && addr == i->watch_address) { + *lenp = i->handle_output(fd, iov, num, i); + return 0; + } + } + warnx("Pending dma %p, addr %p", (void *)dma, (void *)addr); + return 0; +} + +static void handle_input(int fd, int childfd, struct devices *devices) +{ + struct timeval poll = { .tv_sec = 0, .tv_usec = 0 }; + + for (;;) { + struct device *i; + fd_set fds = devices->infds; + + if (select(devices->max_infd+1, &fds, NULL, NULL, &poll) == 0) + break; + + for (i = devices->dev; i; i = i->next) { +...
2007 May 09
0
[patch 9/9] lguest: the documentation, example launcher
...; + for (i = devices->dev; i; i = i->next) { + if (i->handle_output && key == i->watch_key) { + *lenp = i->handle_output(fd, iov, num, i); + return; + } + } + warnx("Pending dma %p, key %p", (void *)dma, (void *)key); +} + +static void handle_input(int fd, int childfd, struct device_list *devices) +{ + struct timeval poll = { .tv_sec = 0, .tv_usec = 0 }; + + for (;;) { + struct device *i; + fd_set fds = devices->infds; + + if (select(devices->max_infd+1, &fds, NULL, NULL, &poll) == 0) + break; + + for (i = devices->dev; i; i = i->next)...
2007 May 09
0
[patch 9/9] lguest: the documentation, example launcher
...; + for (i = devices->dev; i; i = i->next) { + if (i->handle_output && key == i->watch_key) { + *lenp = i->handle_output(fd, iov, num, i); + return; + } + } + warnx("Pending dma %p, key %p", (void *)dma, (void *)key); +} + +static void handle_input(int fd, int childfd, struct device_list *devices) +{ + struct timeval poll = { .tv_sec = 0, .tv_usec = 0 }; + + for (;;) { + struct device *i; + fd_set fds = devices->infds; + + if (select(devices->max_infd+1, &fds, NULL, NULL, &poll) == 0) + break; + + for (i = devices->dev; i; i = i->next)...