projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
It's inappropraite to override application signal, nor is it appropriate
[openssl.git]
/
crypto
/
bio
/
b_sock.c
diff --git
a/crypto/bio/b_sock.c
b/crypto/bio/b_sock.c
index c8ca5923c114c4f8a16f0d25d181b1d692cc8a48..e4c7ee12778667ee7daa076f709530ef108a9508 100644
(file)
--- a/
crypto/bio/b_sock.c
+++ b/
crypto/bio/b_sock.c
@@
-463,9
+463,6
@@
int BIO_sock_init(void)
{
int err;
{
int err;
-#ifdef SIGINT
- signal(SIGINT,(void (*)(int))BIO_sock_cleanup);
-#endif
wsa_init_done=1;
memset(&wsa_state,0,sizeof(wsa_state));
/* Not making wsa_state available to the rest of the
wsa_init_done=1;
memset(&wsa_state,0,sizeof(wsa_state));
/* Not making wsa_state available to the rest of the
@@
-496,11
+493,6
@@
int BIO_sock_init(void)
if (!wsa_init_done)
{
if (!wsa_init_done)
{
-
-# ifdef SIGINT
- signal(SIGINT,(void (*)(int))BIO_sock_cleanup);
-# endif
-
wsa_init_done=1;
wVerReq = MAKEWORD( 2, 0 );
err = WSAStartup(wVerReq,&wsaData);
wsa_init_done=1;
wVerReq = MAKEWORD( 2, 0 );
err = WSAStartup(wVerReq,&wsaData);
@@
-522,7
+514,7
@@
void BIO_sock_cleanup(void)
if (wsa_init_done)
{
wsa_init_done=0;
if (wsa_init_done)
{
wsa_init_done=0;
-#if
ndef OPENSSL_SYS_WINCE
+#if
0 /* this call is claimed to be non-present in Winsock2 */
WSACancelBlockingCall();
#endif
WSACleanup();
WSACancelBlockingCall();
#endif
WSACleanup();