ETXTBSY (was: How to find process name in c?)

Maarten Litmaath maart at cs.vu.nl
Thu Jul 19 11:07:52 AEST 1990


Try this under 4.1BSD:

	sleep 3600 < /bin/cat &

The next hour nobody can use `cat'...
When checking if a file is executable, the 4.1 kernel returns ETXTBSY if
it is open, even if only for reading.  :-(
--
 "and with a sudden plop it lands on usenet.  what is it? omigosh, it must[...]
   be a new user! quick kill it before it multiplies!"      (Loren J. Miller)



More information about the Comp.unix.questions mailing list