mirror of
https://github.com/greatscottgadgets/hackrf.git
synced 2026-03-03 05:55:18 +01:00
hackrf_transfer: send signal to own PID
Instead of sending a signal to the process group, get our own process ID and send the signal to it. This fixes a bug that prevented termination when called from a script.
This commit is contained in:
@@ -397,7 +397,7 @@ void stop_main_loop(void)
|
||||
#ifdef _WIN32
|
||||
SetEvent(interrupt_handle);
|
||||
#else
|
||||
kill(0, SIGALRM);
|
||||
kill(getpid(), SIGALRM);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user