[shibboleth-sp2] 53/100: Proper win32 error detection

Ferenc Wágner wferi-guest at moszumanska.debian.org
Tue Jan 26 21:29:17 UTC 2016


This is an automated email from the git hooks/post-receive script.

wferi-guest pushed a commit to annotated tag 1.2.1
in repository shibboleth-sp2.

commit 4cd0aaa8868f1387b63e074d8a13e476c620ff98
Author: Scott Cantor <cantor.2 at osu.edu>
Date:   Tue Oct 19 02:55:07 2004 +0000

    Proper win32 error detection
---
 shar/shar.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/shar/shar.cpp b/shar/shar.cpp
index 7a1775a..fae5859 100644
--- a/shar/shar.cpp
+++ b/shar/shar.cpp
@@ -127,7 +127,11 @@ static void shar_svc_run(IListener::ShibSocket& listener, const Iterator<ShibRPC
         tv.tv_sec = 5;
     
         switch (select(listener + 1, &readfds, 0, 0, &tv)) {
+#ifdef WIN32
+            case SOCKET_ERROR:
+#else
             case -1:
+#endif
                 if (errno == EINTR) continue;
                 SHARUtils::log_error();
                 log.error("select() on main listener socket failed");

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-shibboleth/shibboleth-sp2.git



More information about the Pkg-shibboleth-devel mailing list