|
Home > Archive > Unix Programming > October 2005 > I/O error whitst writing to binary file
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
I/O error whitst writing to binary file
|
|
| mobenoua 2005-10-31, 7:56 am |
| I am running about 10 unix processes writing different binary files to
the same output directory. The processes run for about 12 hours. After
8 hours, one or two of the processes gets an I/O error whilst trying to
write to a binary file. I have checked that
I have enough disk space and have not exceeded the number
of file descriptors that could be open at the same time.
The servers write to separate binary files at the same time. The
processes use the system call c write function.
| |
| Andrei Voropaev 2005-10-31, 5:58 pm |
| On 2005-10-31, mobenoua <mobenoua@hotmail.com> wrote:
> I am running about 10 unix processes writing different binary files to
> the same output directory. The processes run for about 12 hours. After
> 8 hours, one or two of the processes gets an I/O error whilst trying to
> write to a binary file. I have checked that
[...]
Why don't you print out the error that your write function returns? Then
you know exactly what has happened, and nobody has to guess what could
have happened 
--
Minds, like parachutes, function best when open
| |
| mobenoua 2005-10-31, 5:58 pm |
| I am getting EIO error
| |
|
| mobenoua wrote:
> I am getting EIO error
>
Check your disk for bad blocks.
Ian
|
|
|
|
|