1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-ab,v 1.5 2007/10/27 00:35:17 wiz Exp $
--- jnetlib/connection.cpp.orig 2007-10-18 17:17:06.000000000 +0000
+++ jnetlib/connection.cpp
@@ -224,8 +224,17 @@ void JNL_Connection::run(int max_send_by
if (select_retval == -1)
#else
+#ifdef __DragonFly__
+ sigset_t cur_set;
+ sigprocmask(SIG_SETMASK, &sigs, &cur_set);
+ int select_retval = select(m_socket+1,&f[0],&f[1],&f[2],NULL);
+ sigprocmask(SIG_SETMASK, &cur_set, NULL);
+
+ if (select_retval == -1)
+#else
if (pselect(m_socket+1,&f[0],&f[1],&f[2],&ts,&sigs)==-1)
#endif
+#endif
{
m_errorstr="connecting to host (calling select())";
m_state=STATE_ERROR;
|