netutils: iperf: Add pthread_join() to wait for completion
Summary: - I noticed that lc823450-xgevk:rndis does not work with iperf - Finally, I found that it does not call pthread_join() - This commit fixes this issue Impact: - No impact Testing: - Tested with lc823450-xgevk:rndis - NOTE: need to add iperf in the defconfig Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
parent
623a668baa
commit
f14e98c942
@ -653,6 +653,7 @@ static uint32_t iperf_get_buffer_len(void)
|
|||||||
int iperf_start(struct iperf_cfg_t *cfg)
|
int iperf_start(struct iperf_cfg_t *cfg)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
void *retval;
|
||||||
struct sched_param param;
|
struct sched_param param;
|
||||||
pthread_t thread;
|
pthread_t thread;
|
||||||
pthread_attr_t attr;
|
pthread_attr_t attr;
|
||||||
@ -696,6 +697,7 @@ int iperf_start(struct iperf_cfg_t *cfg)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pthread_join(thread, &retval);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user