/* full-write.c -- an interface to write that retries after interrupts
- Copyright (C) 1993, 1994 Free Software Foundation, Inc.
+ Copyright (C) 1993, 1994, 1997 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
while (len > 0)
{
int written = write (desc, ptr, len);
+ /* FIXME: write on my slackware Linux 1.2.13 returns zero when
+ I try to write more data than there is room on a floppy disk.
+ This puts dd into an infinite loop. Reproduce with
+ dd if=/dev/zero of=/dev/fd0. */
if (written < 0)
{
#ifdef EINTR