Skip to content
Snippets Groups Projects

Correctly handle SIGINT/stop signal in nr-softmodem

Merged Robert Schmidt requested to merge fix-nrsoftmodem-stop into develop
3 files
+ 8
15
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -833,16 +833,14 @@ int main( int argc, char **argv ) {
/* release memory used by the RU/gNB threads (incomplete), after all
* threads have been stopped (they partially use the same memory) */
for (int inst = 0; inst < NB_gNB_INST; inst++) {
//free_transport(RC.gNB[inst]);
phy_free_nr_gNB(RC.gNB[inst]);
}
for (int inst = 0; inst < NB_RU; inst++) {
kill_NR_RU_proc(inst);
nr_phy_free_RU(RC.ru[inst]);
}
for (int inst = 0; inst < NB_gNB_INST; inst++) {
phy_free_nr_gNB(RC.gNB[inst]);
}
pthread_cond_destroy(&sync_cond);
pthread_mutex_destroy(&sync_mutex);
pthread_cond_destroy(&nfapi_sync_cond);
Loading