in reply to Re^2: kill process when files created...
in thread kill process when files created...

Good point about the -C option.

The way the OP is invoking tcpdump it will not get run in the background. Thus the while will not get executed until tcpdump finishes.