Query regarding open in c
Hi
my code is
while(true)
{
file_desc=open("/monitor",O_RDONLY);
if(file_desc<0)
{
}
close(file_desc);
}
It is satisfying file_desc<0 only when process starts. If I manually the file it is not going inside if
Do we need to give fflush for it ?
Please suggest
|