In a program A, it calls a script B. And in the script B, it calls wpa_supplicant directly (not via this way: systemctl start wpa_supplicant) to config WIFI network. And we found that if the program A is killed, sometimes the network will be disconnected while sometimes the network keeps connected.
program A -> call script B -> call wpa_supplicant
So I want to know why? In my understanding, if the parent process is killed, then the child process will die automatically, right? Why sometimes the network keeps connected? Which means the child process wpa_supplicant is still alive, right?