[lkml]   [2000]   [Sep]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRace condition in 2.2.15 and 2.2.16

There is a race condition somewhere in linux-2.2.15 and 2.2.16 that is
demonstrated here.

Cut and save the included 'Makefile'.

mkdir zam
mv Makefile zam
cd zam

Make sure you are in the empty directory with only "Makefile"

while true ; do make clean ; done

The file, Makefile, will be deleted. A zero-length one will sometimes
remain in /tmp

----- Makefile -------
# Warning!! Put this in an EMPTY subdirectory.

all: foo

touch foo

mv Makefile /tmp
rm -r *
mv /tmp/Makefile .

Now I know that you don't DO things like this. Please, this is
a demonstration, specifically designed to show a problem that
sometimes occurs in much more subtle ways. This problem can
result in missing source-code files in large directory trees
after working on them for 8-10 solid hours. NotGood(tm).

Dick Johnson

Penguin : Linux version 2.2.15 on an i686 machine (797.90 BogoMips).

"Memory is like gasoline. You use it up when you are running. Of
course you get it all back when you reboot..."; Actual explanation
obtained from the Micro$oft help desk.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:38    [W:0.015 / U:1.256 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site