Compare commits

...

2 Commits

Author SHA1 Message Date
Robert Schmidt
c74fe097ff pthread-cancel 2025-08-21 17:27:37 +02:00
Robert Schmidt
847318ea91 Give more sleep 2025-08-21 11:30:31 +02:00
2 changed files with 4 additions and 2 deletions

View File

@@ -94,7 +94,7 @@
<testCase id="000004">
<class>IdleSleep</class>
<desc>Sleep</desc>
<idle_sleep_time_in_sec>1</idle_sleep_time_in_sec>
<idle_sleep_time_in_sec>3</idle_sleep_time_in_sec>
</testCase>
<testCase id="020001">

View File

@@ -211,7 +211,9 @@ void remove_ip_if(nr_sdap_entity_t *entity)
// Close the socket: read() will get EBADF and exit
close(entity->pdusession_sock);
int ret = pthread_join(entity->pdusession_thread, NULL);
int ret = pthread_cancel(entity->pdusession_thread);
AssertFatal(ret == 0, "pthread_cancel() failed, errno: %d, %s\n", errno, strerror(errno));
ret = pthread_join(entity->pdusession_thread, NULL);
AssertFatal(ret == 0, "pthread_join() failed, errno: %d, %s\n", errno, strerror(errno));
// Bring down the IP interface
int default_pdu = get_softmodem_params()->default_pdu_session_id;