some answers me by email to suggest it is a atime update but i don't think
so. because "main(){}" doesn't read/write anything. any other classic
unix tools like ls, ping etc... don't read/write anything immediatly on
my hd...
i studied vmstat's io bo ("bo: Blocks received from a block device (blocks/s)"
from vmstat's manpage) and i see 4 new bo each time i run my source.
that comes from fork(), and the following source makes me think something
these 4 blocks is read when the child die.
main(){ if( !fork()) sleep(4); else sleep(2); }
any explaination ?
-- Jerome Etienne <jetienne at ifhamy.insa-lyon.fr> aim: being human, not ape aim: Learn the core knowledge and deduce from it and the current context. Thou shalt not make a machine in the likeness of a human mind. --- f.herbert