kopia lustrzana https://github.com/Hamlib/Hamlib
Revert "Remove unneeded close in rigctld, rotctld, ampctld"
This reverts commit 493f527043
.
pull/193/head
rodzic
174c26a202
commit
2b95b6b805
|
@ -680,6 +680,8 @@ void *handle_socket(void *arg)
|
|||
handle_exit:
|
||||
#ifdef __MINGW32__
|
||||
closesocket(handle_data_arg->sock);
|
||||
#else
|
||||
close(handle_data_arg->sock);
|
||||
#endif
|
||||
free(arg);
|
||||
|
||||
|
|
|
@ -1043,6 +1043,14 @@ handle_exit:
|
|||
fclose(fsockin);
|
||||
fclose(fsockout);
|
||||
|
||||
// for everybody else we close the handle after fclose
|
||||
#ifndef __MINGW32__
|
||||
retcode = close(handle_data_arg->sock);
|
||||
|
||||
if (retcode != 0) { rig_debug(RIG_DEBUG_ERR, "%s: close(handle_data_arg->sock) %s\n", __func__, strerror(retcode)); }
|
||||
|
||||
#endif
|
||||
|
||||
free(arg);
|
||||
|
||||
#ifdef HAVE_PTHREAD
|
||||
|
|
|
@ -693,6 +693,8 @@ void *handle_socket(void *arg)
|
|||
handle_exit:
|
||||
#ifdef __MINGW32__
|
||||
closesocket(handle_data_arg->sock);
|
||||
#else
|
||||
close(handle_data_arg->sock);
|
||||
#endif
|
||||
free(arg);
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue