mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-17 17:43:06 -05:00
The hwsim's start.sh script spawns hostapd process using "sudo". Since sudo forks a child process, $! holds the pid of sudo itself. Fix that by storing the PID of the child process instead. Since in VM "sudo" is replaced with a dummy script, pass an additional argument to run-all.sh and start.sh scripts to indicate that they are running inside a VM. This is needed to fix ap_config_reload and ap_config_reload_file test cases on some platforms where sudo is apparently not relaying the signals properly. Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>