summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-05-14 14:42:08 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-05-14 14:42:08 +0000
commit379f8dc517b6fbaf0ad97acf17138909a4e2bdfc (patch)
treee033db243fbd00aa084764cce4d8978fe1a22746
parentb66f41ac8c2c37952680d7e0cba7fd6a269ec3de (diff)
downloaddrakx-379f8dc517b6fbaf0ad97acf17138909a4e2bdfc.tar
drakx-379f8dc517b6fbaf0ad97acf17138909a4e2bdfc.tar.gz
drakx-379f8dc517b6fbaf0ad97acf17138909a4e2bdfc.tar.bz2
drakx-379f8dc517b6fbaf0ad97acf17138909a4e2bdfc.tar.xz
drakx-379f8dc517b6fbaf0ad97acf17138909a4e2bdfc.zip
no need to poll() for data at beginning of load_ramdisk_fd, it was a fix of another problem (bug with file stdio operations with sockets in dietlibc)
-rw-r--r--mdk-stage1/tools.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/mdk-stage1/tools.c b/mdk-stage1/tools.c
index 17aac9f48..66df907b7 100644
--- a/mdk-stage1/tools.c
+++ b/mdk-stage1/tools.c
@@ -251,16 +251,6 @@ enum return_type load_ramdisk_fd(int ramdisk_fd, int size)
int bytes_read = 0;
int actually;
int seems_ok = 0;
- struct pollfd polls;
-
- /* first of all, we wait for data to be available on fd; because
- when it's a socket, data can be unavailable at the beginning */
- polls.fd = ramdisk_fd;
- polls.events = POLLIN;
- if (poll(&polls, 1, 10000) != 1) {
- log_message("poll'ing ramdisk fd: timeout or error");
- return RETURN_ERROR;
- }
st2 = BZ2_bzdopen(ramdisk_fd, "r");