Shutdown BUG?



Question:

If a shutdown sequence is suppose to flush the buffer why
is it inhibiting a write.

Example:

File *f;
int res;
f = fopen("/var/lock/Lck..File","w");
res = fprint(f,"Locked");
res = fclose(f);
f = NULL;
res = system("shutdown -h -t secs:60 now \"Error\"");

In above example the lock file will not be written to disk.
To add just another oddity to the equation if a directory is
created for the lock file it will be created.

Strange, can anyone shed light on this subject?
Distribution Mandrake 7.0 Gnome 1.2 Helix Evolution Nautilus

Email:    john hawk gte net





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]