Permalink
Browse files

select() change broke USR1

  • Loading branch information...
1 parent 8be2099 commit 5bd568f0bedbdaf3054ca3a262181b64baccce98 @erh erh committed May 3, 2010
Showing with 8 additions and 1 deletion.
  1. +8 −1 util/message.cpp
View
@@ -147,8 +147,15 @@ namespace mongo {
continue;
}
else if (ret < 0){
+ int x = errno;
+#ifdef EINTR
+ if ( x == EINTR ){
+ log() << "select() signal caught, continuing" << endl;
+ continue;
+ }
+#endif
if ( ! inShutdown() )
- log() << "select() failure: ret=" << ret << " " << errnoWithDescription() << endl;
+ log() << "select() failure: ret=" << ret << " " << errnoWithDescription(x) << endl;
return;
}

0 comments on commit 5bd568f

Please sign in to comment.