Changeset 1175:2da13c87baa7 in freeDiameter for libfdcore/sctp.c
- Timestamp:
- Jun 3, 2013, 1:13:17 PM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdcore/sctp.c
r1174 r1175 925 925 #endif 926 926 927 /* Bug in some Linux kernel, the sctp_connectx is not a cancellation point. To avoid blocking freeDiameter, we allow async cancel here */ 928 pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL); 927 929 #ifdef SCTP_CONNECTX_4_ARGS 928 930 ret = sctp_connectx(*sock, sar.sa, count, NULL); … … 930 932 ret = sctp_connectx(*sock, sar.sa, count); 931 933 #endif /* SCTP_CONNECTX_4_ARGS */ 934 /* back to normal cancelation behabior */ 935 pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, NULL); 932 936 933 937 if (ret < 0) {
Note: See TracChangeset
for help on using the changeset viewer.