diff options
Diffstat (limited to 'src/mongo')
-rw-r--r-- | src/mongo/transport/service_entry_point_utils.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/transport/service_entry_point_utils.cpp b/src/mongo/transport/service_entry_point_utils.cpp index efe934967fb..ac0a6109e03 100644 --- a/src/mongo/transport/service_entry_point_utils.cpp +++ b/src/mongo/transport/service_entry_point_utils.cpp @@ -123,7 +123,11 @@ void launchWrappedServiceEntryWorkerThread(transport::Session&& session, if (kDebugBuild) stackSizeToSet /= 2; #endif - pthread_attr_setstacksize(&attrs, stackSizeToSet); + int failed = pthread_attr_setstacksize(&attrs, stackSizeToSet); + if (failed) { + const auto ewd = errnoWithDescription(failed); + warning() << "pthread_attr_setstacksize failed: " << ewd; + } } else if (limits.rlim_cur < 1024 * 1024) { warning() << "Stack size set to " << (limits.rlim_cur / 1024) << "KB. We suggest 1MB"; } |