diff options
Diffstat (limited to 'executor/executor.cc')
| -rw-r--r-- | executor/executor.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/executor/executor.cc b/executor/executor.cc index 955302cab..02792f82f 100644 --- a/executor/executor.cc +++ b/executor/executor.cc @@ -256,6 +256,11 @@ void loop() fail("failed to chdir"); close(kInPipeFd); close(kOutPipeFd); + if (flag_enable_tun) { + // Read all remaining packets from tun to better + // isolate consequently executing programs. + flush_tun(); + } execute_one(); debug("worker exiting\n"); doexit(0); |
