batch file - fork bomb which terminates when flash drive is ejected -


i trying make fork bomb closes flash drive on stored removed. code far:

:start start %0 if exist e:\forkbomb.bat goto start 

for reason stays open once flash drive removed, why condition not become false once flash drive no longer inserted , cause program exit? thanks!

a forkbomb render system inoperatable in means of seconds. have few seconds (if not less) remove usb drive. when many processes spawned disconnect come late, other processes take cpu , stick still "plugged in". when file not there, there damn in queue new processes keep spawning, condition met.

also, sorry insult, trying plain stupid. understand how forkbomb works? because talking of "the program" (you should speaking of "the many many many many many processes). simplified, fork bomb self-reproducing process again reproduce, , on. junk system memory damn fast!


Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -