passenger 6.2.0 → 6.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG +33 -1
- data/CONTRIBUTING.md +7 -311
- data/CONTRIBUTORS +1 -0
- data/LICENSE +1 -1
- data/README.md +1 -1
- data/Rakefile +1 -1
- data/bin/passenger +1 -1
- data/bin/passenger-config +1 -1
- data/bin/passenger-install-apache2-module +1 -1
- data/bin/passenger-install-nginx-module +4 -9
- data/bin/passenger-memory-stats +1 -1
- data/bin/passenger-status +1 -1
- data/build/agent.rb +13 -15
- data/build/apache2.rb +13 -16
- data/build/basics.rb +10 -13
- data/build/common_library.rb +5 -9
- data/build/cxx_tests.rb +37 -12
- data/build/integration_tests.rb +5 -2
- data/build/misc.rb +1 -1
- data/build/nginx.rb +1 -1
- data/build/node_tests.rb +1 -1
- data/build/oxt_tests.rb +6 -8
- data/build/packaging.rb +1 -1
- data/build/ruby_extension.rb +1 -1
- data/build/ruby_tests.rb +1 -1
- data/build/schema_printer.rb +13 -15
- data/build/support/cplusplus.rb +61 -69
- data/build/support/cxx_dependency_map.rb +2 -1
- data/build/support/general.rb +1 -1
- data/build/support/vendor/cxx_hinted_parser/LICENSE.md +1 -1
- data/build/support/vendor/cxx_hinted_parser/lib/cxx_hinted_parser/parser.rb +1 -1
- data/build/support/vendor/cxx_hinted_parser/lib/cxx_hinted_parser.rb +1 -1
- data/build/support/vendor/cxxcodebuilder/LICENSE.md +1 -1
- data/build/support/vendor/cxxcodebuilder/lib/cxxcodebuilder/builder.rb +1 -1
- data/build/support/vendor/cxxcodebuilder/lib/cxxcodebuilder/initializer_builder.rb +1 -1
- data/build/support/vendor/cxxcodebuilder/lib/cxxcodebuilder.rb +1 -1
- data/build/test_basics.rb +1 -1
- data/dev/copy_boost_headers +1 -1
- data/dev/index_cxx_dependencies.rb +5 -1
- data/dev/libev-changes.patch +108 -0
- data/dev/nginx_version_sha256 +1 -1
- data/dev/ruby_server.rb +1 -6
- data/dev/upgrading_libuv.sh +16 -0
- data/doc/BasicArchitectureOverview.md +55 -0
- data/doc/BuildCaching.md +23 -0
- data/doc/BuildSystem.md +49 -0
- data/doc/DebuggingAndStressTesting.md +2 -0
- data/doc/DesignAspects/LimitedGemDependencies.md +1 -0
- data/doc/DevEnvironmentSetup.md +46 -0
- data/doc/DevHandbook.md +28 -0
- data/doc/Packaging.md +1 -1
- data/doc/RunningTests.md +88 -0
- data/doc/{TempFileHandling.md → SecureTempFileHandling.md} +1 -1
- data/doc/{CxxTestingGuide.md → WritingCxxTests.md} +1 -20
- data/src/agent/AgentMain.cpp +1 -1
- data/src/agent/Core/ApiServer.h +1 -1
- data/src/agent/Core/ApplicationPool/AbstractSession.h +1 -1
- data/src/agent/Core/ApplicationPool/BasicGroupInfo.h +1 -1
- data/src/agent/Core/ApplicationPool/BasicProcessInfo.h +1 -1
- data/src/agent/Core/ApplicationPool/Common.h +1 -1
- data/src/agent/Core/ApplicationPool/Context.h +1 -1
- data/src/agent/Core/ApplicationPool/Group/InitializationAndShutdown.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Group/InternalUtils.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Group/LifetimeAndBasics.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Group/Miscellaneous.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Group/OutOfBandWork.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Group/ProcessListManagement.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Group/SessionManagement.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Group/SpawningAndRestarting.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Group/StateInspection.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Group/Verification.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Group.h +1 -1
- data/src/agent/Core/ApplicationPool/Implementation.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Options.h +1 -1
- data/src/agent/Core/ApplicationPool/Pool/AnalyticsCollection.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Pool/GarbageCollection.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Pool/GeneralUtils.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Pool/GroupUtils.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Pool/InitializationAndShutdown.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Pool/Miscellaneous.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Pool/ProcessUtils.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Pool/StateInspection.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Pool.h +1 -1
- data/src/agent/Core/ApplicationPool/Process.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Process.h +1 -1
- data/src/agent/Core/ApplicationPool/Session.h +1 -1
- data/src/agent/Core/ApplicationPool/Socket.h +1 -1
- data/src/agent/Core/ApplicationPool/TestSession.h +1 -1
- data/src/agent/Core/Config.h +3 -2
- data/src/agent/Core/ConfigChange.cpp +1 -1
- data/src/agent/Core/ConfigChange.h +1 -1
- data/src/agent/Core/Controller/AppResponse.h +1 -1
- data/src/agent/Core/Controller/BufferBody.cpp +1 -1
- data/src/agent/Core/Controller/CheckoutSession.cpp +8 -5
- data/src/agent/Core/Controller/Client.h +1 -1
- data/src/agent/Core/Controller/Config.cpp +1 -1
- data/src/agent/Core/Controller/Config.h +2 -2
- data/src/agent/Core/Controller/ForwardResponse.cpp +2 -2
- data/src/agent/Core/Controller/Hooks.cpp +12 -9
- data/src/agent/Core/Controller/Implementation.cpp +1 -1
- data/src/agent/Core/Controller/InitRequest.cpp +1 -1
- data/src/agent/Core/Controller/InitializationAndShutdown.cpp +1 -1
- data/src/agent/Core/Controller/InternalUtils.cpp +1 -1
- data/src/agent/Core/Controller/Miscellaneous.cpp +1 -1
- data/src/agent/Core/Controller/Request.h +1 -1
- data/src/agent/Core/Controller/SendRequest.cpp +1 -1
- data/src/agent/Core/Controller/StateInspection.cpp +1 -1
- data/src/agent/Core/Controller/TurboCaching.h +1 -1
- data/src/agent/Core/Controller.h +1 -1
- data/src/agent/Core/CoreMain.cpp +1 -1
- data/src/agent/Core/OptionParser.h +1 -1
- data/src/agent/Core/ResponseCache.h +1 -1
- data/src/agent/Core/SecurityUpdateChecker.h +1 -1
- data/src/agent/Core/SpawningKit/Config/AutoGeneratedCode.h +1 -1
- data/src/agent/Core/SpawningKit/Config/AutoGeneratedCode.h.cxxcodebuilder +1 -1
- data/src/agent/Core/SpawningKit/Config.h +1 -1
- data/src/agent/Core/SpawningKit/Context.h +1 -1
- data/src/agent/Core/SpawningKit/DirectSpawner.h +1 -1
- data/src/agent/Core/SpawningKit/DummySpawner.h +1 -1
- data/src/agent/Core/SpawningKit/ErrorRenderer.h +1 -1
- data/src/agent/Core/SpawningKit/Exceptions.h +63 -2
- data/src/agent/Core/SpawningKit/Factory.h +1 -1
- data/src/agent/Core/SpawningKit/Handshake/BackgroundIOCapturer.h +1 -1
- data/src/agent/Core/SpawningKit/Handshake/Perform.h +3 -2
- data/src/agent/Core/SpawningKit/Handshake/Prepare.h +1 -1
- data/src/agent/Core/SpawningKit/Handshake/Session.h +1 -1
- data/src/agent/Core/SpawningKit/Handshake/WorkDir.h +1 -1
- data/src/agent/Core/SpawningKit/Journey.h +1 -1
- data/src/agent/Core/SpawningKit/PipeWatcher.h +1 -1
- data/src/agent/Core/SpawningKit/README.md +3 -3
- data/src/agent/Core/SpawningKit/Result/AutoGeneratedCode.h +1 -1
- data/src/agent/Core/SpawningKit/Result/AutoGeneratedCode.h.cxxcodebuilder +1 -1
- data/src/agent/Core/SpawningKit/Result.h +1 -1
- data/src/agent/Core/SpawningKit/SmartSpawner.h +17 -17
- data/src/agent/Core/SpawningKit/Spawner.h +1 -1
- data/src/agent/Core/SpawningKit/UserSwitchingRules.h +1 -1
- data/src/agent/Core/TelemetryCollector.h +1 -1
- data/src/agent/ExecHelper/ExecHelperMain.cpp +1 -1
- data/src/agent/FileReadHelper/FileReadHelperMain.cpp +1 -1
- data/src/agent/MainFunctions.h +1 -1
- data/src/agent/Shared/ApiAccountUtils.h +4 -3
- data/src/agent/Shared/ApiServerUtils.h +1 -2
- data/src/agent/Shared/ApplicationPoolApiKey.h +1 -1
- data/src/agent/Shared/Fundamentals/AbortHandler.cpp +1 -1
- data/src/agent/Shared/Fundamentals/AbortHandler.h +1 -1
- data/src/agent/Shared/Fundamentals/Initialization.cpp +1 -1
- data/src/agent/Shared/Fundamentals/Initialization.h +1 -1
- data/src/agent/Shared/Fundamentals/Utils.cpp +1 -1
- data/src/agent/Shared/Fundamentals/Utils.h +1 -1
- data/src/agent/SpawnEnvSetupper/SpawnEnvSetupperMain.cpp +1 -1
- data/src/agent/SystemMetrics/SystemMetricsMain.cpp +1 -1
- data/src/agent/TempDirToucher/TempDirToucherMain.cpp +1 -1
- data/src/agent/Watchdog/ApiServer.h +7 -6
- data/src/agent/Watchdog/Config.h +2 -2
- data/src/apache2_module/Bucket.cpp +1 -1
- data/src/apache2_module/Bucket.h +1 -1
- data/src/apache2_module/CBindings.cpp +1 -1
- data/src/apache2_module/Config.cpp +1 -1
- data/src/apache2_module/Config.h +1 -1
- data/src/apache2_module/ConfigGeneral/AutoGeneratedDefinitions.cpp +104 -104
- data/src/apache2_module/ConfigGeneral/AutoGeneratedDefinitions.cpp.cxxcodebuilder +2 -2
- data/src/apache2_module/ConfigGeneral/AutoGeneratedManifestDefaultsInitialization.cpp +1 -1
- data/src/apache2_module/ConfigGeneral/AutoGeneratedManifestDefaultsInitialization.cpp.cxxcodebuilder +1 -1
- data/src/apache2_module/ConfigGeneral/AutoGeneratedSetterFuncs.cpp +1 -1
- data/src/apache2_module/ConfigGeneral/AutoGeneratedSetterFuncs.cpp.cxxcodebuilder +1 -1
- data/src/apache2_module/ConfigGeneral/Common.h +1 -1
- data/src/apache2_module/ConfigGeneral/ManifestGeneration.h +1 -1
- data/src/apache2_module/ConfigGeneral/SetterFuncs.h +1 -1
- data/src/apache2_module/DirConfig/AutoGeneratedCreateFunction.cpp +1 -1
- data/src/apache2_module/DirConfig/AutoGeneratedCreateFunction.cpp.cxxcodebuilder +1 -1
- data/src/apache2_module/DirConfig/AutoGeneratedHeaderSerialization.cpp +1 -1
- data/src/apache2_module/DirConfig/AutoGeneratedHeaderSerialization.cpp.cxxcodebuilder +1 -1
- data/src/apache2_module/DirConfig/AutoGeneratedManifestGeneration.cpp +1 -1
- data/src/apache2_module/DirConfig/AutoGeneratedManifestGeneration.cpp.cxxcodebuilder +1 -1
- data/src/apache2_module/DirConfig/AutoGeneratedMergeFunction.cpp +1 -1
- data/src/apache2_module/DirConfig/AutoGeneratedMergeFunction.cpp.cxxcodebuilder +1 -1
- data/src/apache2_module/DirConfig/AutoGeneratedStruct.h +1 -1
- data/src/apache2_module/DirConfig/AutoGeneratedStruct.h.cxxcodebuilder +1 -1
- data/src/apache2_module/DirectoryMapper.h +1 -1
- data/src/apache2_module/Hooks.cpp +8 -2
- data/src/apache2_module/Hooks.h +1 -1
- data/src/apache2_module/ServerConfig/AutoGeneratedManifestGeneration.cpp +1 -1
- data/src/apache2_module/ServerConfig/AutoGeneratedManifestGeneration.cpp.cxxcodebuilder +1 -1
- data/src/apache2_module/ServerConfig/AutoGeneratedStruct.h +1 -1
- data/src/apache2_module/ServerConfig/AutoGeneratedStruct.h.cxxcodebuilder +1 -1
- data/src/apache2_module/Utils.h +1 -1
- data/src/apache2_module/mod_passenger.c +1 -1
- data/src/cxx_supportlib/Algorithms/Hasher.cpp +1 -1
- data/src/cxx_supportlib/Algorithms/Hasher.h +1 -1
- data/src/cxx_supportlib/Algorithms/MovingAverage.h +1 -1
- data/src/cxx_supportlib/AppLocalConfigFileUtils.h +1 -1
- data/src/cxx_supportlib/AppTypeDetector/CBindings.cpp +1 -1
- data/src/cxx_supportlib/AppTypeDetector/CBindings.h +1 -1
- data/src/cxx_supportlib/AppTypeDetector/Detector.h +1 -1
- data/src/cxx_supportlib/BackgroundEventLoop.cpp +1 -1
- data/src/cxx_supportlib/BackgroundEventLoop.h +1 -1
- data/src/cxx_supportlib/ConfigKit/AsyncUtils.h +1 -1
- data/src/cxx_supportlib/ConfigKit/Common.h +1 -1
- data/src/cxx_supportlib/ConfigKit/ConfigKit.h +1 -1
- data/src/cxx_supportlib/ConfigKit/DummyTranslator.h +1 -1
- data/src/cxx_supportlib/ConfigKit/IN_PRACTICE.md +1 -3
- data/src/cxx_supportlib/ConfigKit/PrefixTranslator.h +3 -3
- data/src/cxx_supportlib/ConfigKit/Schema.h +1 -1
- data/src/cxx_supportlib/ConfigKit/SchemaUtils.h +1 -1
- data/src/cxx_supportlib/ConfigKit/Store.h +1 -1
- data/src/cxx_supportlib/ConfigKit/SubComponentUtils.h +1 -1
- data/src/cxx_supportlib/ConfigKit/TableTranslator.h +1 -1
- data/src/cxx_supportlib/ConfigKit/Translator.h +1 -1
- data/src/cxx_supportlib/ConfigKit/Utils.h +1 -1
- data/src/cxx_supportlib/Constants.h +2 -2
- data/src/cxx_supportlib/Constants.h.cxxcodebuilder +1 -1
- data/src/cxx_supportlib/DataStructures/HashedStaticString.h +1 -1
- data/src/cxx_supportlib/DataStructures/LString.cpp +1 -1
- data/src/cxx_supportlib/DataStructures/LString.h +1 -1
- data/src/cxx_supportlib/DataStructures/StringKeyTable.h +1 -1
- data/src/cxx_supportlib/DataStructures/StringMap.h +1 -1
- data/src/cxx_supportlib/Exceptions.cpp +1 -1
- data/src/cxx_supportlib/Exceptions.h +1 -1
- data/src/cxx_supportlib/FileDescriptor.h +1 -1
- data/src/cxx_supportlib/FileTools/FileManip.cpp +1 -1
- data/src/cxx_supportlib/FileTools/FileManip.h +1 -1
- data/src/cxx_supportlib/FileTools/PathManip.cpp +1 -1
- data/src/cxx_supportlib/FileTools/PathManip.h +1 -1
- data/src/cxx_supportlib/FileTools/PathManipCBindings.cpp +1 -1
- data/src/cxx_supportlib/FileTools/PathManipCBindings.h +1 -1
- data/src/cxx_supportlib/FileTools/PathSecurityCheck.cpp +1 -1
- data/src/cxx_supportlib/FileTools/PathSecurityCheck.h +1 -1
- data/src/cxx_supportlib/Hooks.h +1 -1
- data/src/cxx_supportlib/IOTools/BufferedIO.h +1 -1
- data/src/cxx_supportlib/IOTools/IOUtils.cpp +10 -10
- data/src/cxx_supportlib/IOTools/IOUtils.h +1 -1
- data/src/cxx_supportlib/IOTools/MessageIO.h +1 -1
- data/src/cxx_supportlib/IOTools/MessageSerialization.h +1 -1
- data/src/cxx_supportlib/InstanceDirectory.h +1 -1
- data/src/cxx_supportlib/Integrations/LibevJsonUtils.h +1 -1
- data/src/cxx_supportlib/JsonTools/Autocast.h +1 -1
- data/src/cxx_supportlib/JsonTools/CBindings.cpp +1 -1
- data/src/cxx_supportlib/JsonTools/CBindings.h +1 -1
- data/src/cxx_supportlib/JsonTools/JsonUtils.h +1 -1
- data/src/cxx_supportlib/LoggingKit/Assert.h +1 -1
- data/src/cxx_supportlib/LoggingKit/Config.h +2 -1
- data/src/cxx_supportlib/LoggingKit/Context.h +1 -1
- data/src/cxx_supportlib/LoggingKit/Forward.h +1 -1
- data/src/cxx_supportlib/LoggingKit/Implementation.cpp +11 -1
- data/src/cxx_supportlib/LoggingKit/Logging.h +1 -1
- data/src/cxx_supportlib/LoggingKit/LoggingKit.h +1 -1
- data/src/cxx_supportlib/LveLoggingDecorator.h +1 -1
- data/src/cxx_supportlib/MemoryKit/mbuf.cpp +1 -1
- data/src/cxx_supportlib/MemoryKit/mbuf.h +1 -1
- data/src/cxx_supportlib/MemoryKit/palloc.cpp +1 -1
- data/src/cxx_supportlib/MemoryKit/palloc.h +1 -1
- data/src/cxx_supportlib/ProcessManagement/Ruby.cpp +1 -1
- data/src/cxx_supportlib/ProcessManagement/Ruby.h +1 -1
- data/src/cxx_supportlib/ProcessManagement/Spawn.cpp +1 -1
- data/src/cxx_supportlib/ProcessManagement/Spawn.h +1 -1
- data/src/cxx_supportlib/ProcessManagement/Utils.cpp +1 -1
- data/src/cxx_supportlib/ProcessManagement/Utils.h +1 -1
- data/src/cxx_supportlib/RandomGenerator.h +1 -1
- data/src/cxx_supportlib/ResourceLocator.h +1 -1
- data/src/cxx_supportlib/SafeLibev.h +1 -1
- data/src/cxx_supportlib/SecurityKit/Crypto.cpp +9 -27
- data/src/cxx_supportlib/SecurityKit/Crypto.h +2 -2
- data/src/cxx_supportlib/SecurityKit/MemZeroGuard.h +1 -1
- data/src/cxx_supportlib/ServerKit/AcceptLoadBalancer.h +1 -1
- data/src/cxx_supportlib/ServerKit/Channel.h +1 -1
- data/src/cxx_supportlib/ServerKit/Client.h +1 -1
- data/src/cxx_supportlib/ServerKit/ClientRef.h +1 -1
- data/src/cxx_supportlib/ServerKit/Config.h +1 -1
- data/src/cxx_supportlib/ServerKit/Context.h +1 -1
- data/src/cxx_supportlib/ServerKit/CookieUtils.h +1 -1
- data/src/cxx_supportlib/ServerKit/Errors.h +1 -1
- data/src/cxx_supportlib/ServerKit/FdSinkChannel.h +1 -1
- data/src/cxx_supportlib/ServerKit/FdSourceChannel.h +1 -1
- data/src/cxx_supportlib/ServerKit/FileBufferedChannel.h +54 -2
- data/src/cxx_supportlib/ServerKit/FileBufferedFdSinkChannel.h +1 -1
- data/src/cxx_supportlib/ServerKit/HeaderTable.h +1 -1
- data/src/cxx_supportlib/ServerKit/Hooks.h +1 -1
- data/src/cxx_supportlib/ServerKit/HttpChunkedBodyParser.h +1 -1
- data/src/cxx_supportlib/ServerKit/HttpChunkedBodyParserState.h +1 -1
- data/src/cxx_supportlib/ServerKit/HttpClient.h +1 -1
- data/src/cxx_supportlib/ServerKit/HttpHeaderParser.h +1 -1
- data/src/cxx_supportlib/ServerKit/HttpHeaderParserState.h +1 -1
- data/src/cxx_supportlib/ServerKit/HttpRequest.h +1 -1
- data/src/cxx_supportlib/ServerKit/HttpRequestRef.h +1 -1
- data/src/cxx_supportlib/ServerKit/HttpServer.h +1 -1
- data/src/cxx_supportlib/ServerKit/Implementation.cpp +1 -1
- data/src/cxx_supportlib/ServerKit/Server.h +4 -2
- data/src/cxx_supportlib/StaticString.h +1 -1
- data/src/cxx_supportlib/StrIntTools/DateParsing.h +1 -1
- data/src/cxx_supportlib/StrIntTools/StrIntUtils.cpp +1 -1
- data/src/cxx_supportlib/StrIntTools/StrIntUtils.h +1 -1
- data/src/cxx_supportlib/StrIntTools/StrIntUtilsNoStrictAliasing.cpp +1 -1
- data/src/cxx_supportlib/StrIntTools/StringScanning.h +1 -1
- data/src/cxx_supportlib/StrIntTools/Template.h +1 -1
- data/src/cxx_supportlib/SystemTools/ContainerHelpers.h +1 -1
- data/src/cxx_supportlib/SystemTools/ProcessMetricsCollector.h +1 -1
- data/src/cxx_supportlib/SystemTools/SystemMetricsCollector.h +1 -1
- data/src/cxx_supportlib/SystemTools/SystemTime.cpp +1 -1
- data/src/cxx_supportlib/SystemTools/SystemTime.h +1 -1
- data/src/cxx_supportlib/SystemTools/UserDatabase.cpp +1 -1
- data/src/cxx_supportlib/SystemTools/UserDatabase.h +1 -1
- data/src/cxx_supportlib/Utils/AnsiColorConstants.h +1 -1
- data/src/cxx_supportlib/Utils/AsyncSignalSafeUtils.h +1 -1
- data/src/cxx_supportlib/Utils/BlockingQueue.h +1 -1
- data/src/cxx_supportlib/Utils/CachedFileStat.cpp +1 -1
- data/src/cxx_supportlib/Utils/CachedFileStat.h +1 -1
- data/src/cxx_supportlib/Utils/CachedFileStat.hpp +1 -1
- data/src/cxx_supportlib/Utils/ClassUtils.h +1 -1
- data/src/cxx_supportlib/Utils/Curl.h +1 -1
- data/src/cxx_supportlib/Utils/FastStringStream.h +1 -1
- data/src/cxx_supportlib/Utils/FileChangeChecker.h +1 -1
- data/src/cxx_supportlib/Utils/HttpConstants.h +1 -1
- data/src/cxx_supportlib/Utils/IniFile.h +1 -1
- data/src/cxx_supportlib/Utils/MessagePassing.h +1 -1
- data/src/cxx_supportlib/Utils/OptionParsing.h +1 -1
- data/src/cxx_supportlib/Utils/ReleaseableScopedPointer.h +1 -1
- data/src/cxx_supportlib/Utils/ScopeGuard.h +1 -1
- data/src/cxx_supportlib/Utils/SpeedMeter.h +1 -1
- data/src/cxx_supportlib/Utils/Timer.h +1 -1
- data/src/cxx_supportlib/Utils/VariantMap.h +1 -1
- data/src/cxx_supportlib/Utils.cpp +1 -1
- data/src/cxx_supportlib/Utils.h +1 -1
- data/src/cxx_supportlib/WatchdogLauncher.cpp +1 -1
- data/src/cxx_supportlib/WatchdogLauncher.h +1 -1
- data/src/cxx_supportlib/WrapperRegistry/CBindings.cpp +1 -1
- data/src/cxx_supportlib/WrapperRegistry/CBindings.h +1 -1
- data/src/cxx_supportlib/WrapperRegistry/Entry.h +1 -1
- data/src/cxx_supportlib/WrapperRegistry/Registry.h +1 -1
- data/src/cxx_supportlib/oxt/backtrace.hpp +1 -1
- data/src/cxx_supportlib/oxt/detail/backtrace_disabled.hpp +1 -1
- data/src/cxx_supportlib/oxt/detail/backtrace_enabled.hpp +1 -1
- data/src/cxx_supportlib/oxt/detail/context.hpp +1 -1
- data/src/cxx_supportlib/oxt/detail/tracable_exception_disabled.hpp +1 -1
- data/src/cxx_supportlib/oxt/detail/tracable_exception_enabled.hpp +1 -1
- data/src/cxx_supportlib/oxt/dynamic_thread_group.hpp +1 -1
- data/src/cxx_supportlib/oxt/implementation.cpp +1 -1
- data/src/cxx_supportlib/oxt/initialize.hpp +1 -1
- data/src/cxx_supportlib/oxt/macros.hpp +1 -1
- data/src/cxx_supportlib/oxt/spin_lock.hpp +1 -1
- data/src/cxx_supportlib/oxt/system_calls.cpp +1 -1
- data/src/cxx_supportlib/oxt/system_calls.hpp +1 -1
- data/src/cxx_supportlib/oxt/thread.hpp +1 -1
- data/src/cxx_supportlib/oxt/tracable_exception.hpp +1 -1
- data/src/cxx_supportlib/vendor-copy/adhoc_lve.h +1 -1
- data/src/cxx_supportlib/vendor-copy/libuv/AUTHORS +353 -3
- data/src/cxx_supportlib/vendor-copy/libuv/ChangeLog +3981 -2
- data/src/cxx_supportlib/vendor-copy/libuv/LICENSE +1 -28
- data/src/cxx_supportlib/vendor-copy/libuv/LICENSE-docs +396 -0
- data/src/cxx_supportlib/vendor-copy/libuv/LICENSE-extra +36 -0
- data/src/cxx_supportlib/vendor-copy/libuv/Makefile.am +275 -58
- data/src/cxx_supportlib/vendor-copy/libuv/Makefile.in +4380 -2125
- data/src/cxx_supportlib/vendor-copy/libuv/aclocal.m4 +425 -221
- data/src/cxx_supportlib/vendor-copy/libuv/ar-lib +30 -10
- data/src/cxx_supportlib/vendor-copy/libuv/compile +31 -14
- data/src/cxx_supportlib/vendor-copy/libuv/config.guess +1084 -690
- data/src/cxx_supportlib/vendor-copy/libuv/config.sub +1844 -1297
- data/src/cxx_supportlib/vendor-copy/libuv/configure +6935 -3664
- data/src/cxx_supportlib/vendor-copy/libuv/configure.ac +43 -19
- data/src/cxx_supportlib/vendor-copy/libuv/depcomp +12 -11
- data/src/cxx_supportlib/vendor-copy/libuv/include/{uv-darwin.h → uv/darwin.h} +3 -3
- data/src/cxx_supportlib/vendor-copy/libuv/include/{uv-errno.h → uv/errno.h} +119 -60
- data/src/cxx_supportlib/vendor-copy/libuv/include/{uv-linux.h → uv/linux.h} +1 -1
- data/src/cxx_supportlib/vendor-copy/libuv/include/uv/os390.h +33 -0
- data/src/cxx_supportlib/vendor-copy/libuv/include/uv/posix.h +31 -0
- data/src/cxx_supportlib/vendor-copy/libuv/include/{uv-threadpool.h → uv/threadpool.h} +1 -1
- data/src/cxx_supportlib/vendor-copy/libuv/include/{tree.h → uv/tree.h} +3 -250
- data/src/cxx_supportlib/vendor-copy/libuv/include/{uv-unix.h → uv/unix.h} +186 -60
- data/src/cxx_supportlib/vendor-copy/libuv/include/{uv-version.h → uv/version.h} +3 -3
- data/src/cxx_supportlib/vendor-copy/libuv/include/uv/win.h +703 -0
- data/src/cxx_supportlib/vendor-copy/libuv/include/uv.h +528 -40
- data/src/cxx_supportlib/vendor-copy/libuv/install-sh +110 -70
- data/src/cxx_supportlib/vendor-copy/libuv/libuv-static.pc.in +12 -0
- data/src/cxx_supportlib/vendor-copy/libuv/libuv.pc.in +4 -2
- data/src/cxx_supportlib/vendor-copy/libuv/ltmain.sh +995 -619
- data/src/cxx_supportlib/vendor-copy/libuv/m4/ax_pthread.m4 +485 -0
- data/src/cxx_supportlib/vendor-copy/libuv/m4/libtool.m4 +438 -289
- data/src/cxx_supportlib/vendor-copy/libuv/m4/libuv-check-flags.m4 +21 -4
- data/src/cxx_supportlib/vendor-copy/libuv/m4/libuv-check-versions.m4 +7 -0
- data/src/cxx_supportlib/vendor-copy/libuv/m4/ltoptions.m4 +69 -39
- data/src/cxx_supportlib/vendor-copy/libuv/m4/ltsugar.m4 +1 -1
- data/src/cxx_supportlib/vendor-copy/libuv/m4/ltversion.m4 +7 -6
- data/src/cxx_supportlib/vendor-copy/libuv/m4/lt~obsolete.m4 +2 -2
- data/src/cxx_supportlib/vendor-copy/libuv/missing +55 -34
- data/src/cxx_supportlib/vendor-copy/libuv/src/fs-poll.c +52 -20
- data/src/cxx_supportlib/vendor-copy/libuv/src/idna.c +560 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/idna.h +31 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/inet.c +5 -16
- data/src/cxx_supportlib/vendor-copy/libuv/src/queue.h +68 -86
- data/src/cxx_supportlib/vendor-copy/libuv/src/random.c +123 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/strscpy.c +38 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/strscpy.h +39 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/strtok.c +52 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/strtok.h +27 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/thread-common.c +175 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/threadpool.c +172 -57
- data/src/cxx_supportlib/vendor-copy/libuv/src/{unix/timer.c → timer.c} +57 -29
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/aix-common.c +89 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/aix.c +418 -256
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/async.c +168 -129
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/bsd-ifaddrs.c +163 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/bsd-proctitle.c +99 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/core.c +1312 -378
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/cygwin.c +93 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/darwin-proctitle.c +18 -32
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/darwin-stub.h +97 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/darwin-syscalls.h +17 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/darwin.c +41 -139
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/dl.c +1 -1
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/freebsd.c +75 -235
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/fs.c +1308 -299
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/fsevents.c +150 -148
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/getaddrinfo.c +58 -8
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/getnameinfo.c +3 -2
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/haiku.c +172 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/hurd.c +172 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/ibmi.c +542 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/internal.h +297 -106
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/kqueue.c +325 -94
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/linux.c +2708 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/loop-watcher.c +11 -11
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/loop.c +105 -24
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/netbsd.c +51 -157
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/no-fsevents.c +42 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/no-proctitle.c +45 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/openbsd.c +42 -183
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/os390-proctitle.c +136 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/os390-syscalls.c +536 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/os390-syscalls.h +75 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/os390.c +1070 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/pipe.c +324 -55
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/poll.c +58 -11
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/posix-hrtime.c +36 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/posix-poll.c +385 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/process.c +795 -248
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/procfs-exepath.c +45 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/proctitle.c +77 -22
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/qnx.c +142 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/random-devurandom.c +93 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/random-getentropy.c +57 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/random-getrandom.c +86 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/random-sysctl-linux.c +99 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/signal.c +147 -39
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/stream.c +426 -474
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/sunos.c +240 -98
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/sysinfo-loadavg.c +36 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/sysinfo-memory.c +42 -0
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/tcp.c +402 -91
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/thread.c +497 -145
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/tty.c +269 -45
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/udp.c +695 -165
- data/src/cxx_supportlib/vendor-copy/libuv/src/uv-common.c +463 -61
- data/src/cxx_supportlib/vendor-copy/libuv/src/uv-common.h +248 -44
- data/src/cxx_supportlib/vendor-copy/libuv/src/uv-data-getter-setters.c +119 -0
- data/src/cxx_supportlib/vendor-copy/libuv/tsansupp.txt +2 -0
- data/src/cxx_supportlib/vendor-modified/libev/Changes +109 -0
- data/src/cxx_supportlib/vendor-modified/libev/Makefile.am +2 -1
- data/src/cxx_supportlib/vendor-modified/libev/Makefile.in +47 -33
- data/src/cxx_supportlib/vendor-modified/libev/README +2 -1
- data/src/cxx_supportlib/vendor-modified/libev/aclocal.m4 +1653 -1224
- data/src/cxx_supportlib/vendor-modified/libev/config.guess +376 -316
- data/src/cxx_supportlib/vendor-modified/libev/config.h.in +13 -2
- data/src/cxx_supportlib/vendor-modified/libev/config.sub +156 -154
- data/src/cxx_supportlib/vendor-modified/libev/configure +1431 -940
- data/src/cxx_supportlib/vendor-modified/libev/configure.ac +3 -3
- data/src/cxx_supportlib/vendor-modified/libev/depcomp +5 -5
- data/src/cxx_supportlib/vendor-modified/libev/ev++.h +109 -107
- data/src/cxx_supportlib/vendor-modified/libev/ev.c +807 -319
- data/src/cxx_supportlib/vendor-modified/libev/ev.h +111 -105
- data/src/cxx_supportlib/vendor-modified/libev/ev_epoll.c +42 -29
- data/src/cxx_supportlib/vendor-modified/libev/ev_iouring.c +694 -0
- data/src/cxx_supportlib/vendor-modified/libev/ev_kqueue.c +15 -9
- data/src/cxx_supportlib/vendor-modified/libev/ev_linuxaio.c +620 -0
- data/src/cxx_supportlib/vendor-modified/libev/ev_poll.c +19 -14
- data/src/cxx_supportlib/vendor-modified/libev/ev_port.c +8 -5
- data/src/cxx_supportlib/vendor-modified/libev/ev_select.c +6 -6
- data/src/cxx_supportlib/vendor-modified/libev/ev_vars.h +48 -3
- data/src/cxx_supportlib/vendor-modified/libev/ev_win32.c +2 -2
- data/src/cxx_supportlib/vendor-modified/libev/ev_wrap.h +72 -0
- data/src/cxx_supportlib/vendor-modified/libev/install-sh +23 -13
- data/src/cxx_supportlib/vendor-modified/libev/libev.m4 +6 -1
- data/src/cxx_supportlib/vendor-modified/libev/ltmain.sh +3581 -1993
- data/src/cxx_supportlib/vendor-modified/libev/missing +8 -8
- data/src/cxx_supportlib/vendor-modified/libev/mkinstalldirs +3 -3
- data/src/cxx_supportlib/vendor-modified/modp_b64_strict_aliasing.cpp +1 -1
- data/src/helper-scripts/backtrace-sanitizer.rb +1 -1
- data/src/helper-scripts/crash-watch.rb +1 -1
- data/src/helper-scripts/download_binaries/extconf.rb +1 -1
- data/src/helper-scripts/meteor-loader.rb +1 -1
- data/src/helper-scripts/node-loader.js +1 -1
- data/src/helper-scripts/prespawn +1 -1
- data/src/helper-scripts/rack-loader.rb +1 -1
- data/src/helper-scripts/rack-preloader.rb +1 -1
- data/src/helper-scripts/wsgi-loader.py +1 -1
- data/src/nginx_module/ConfigGeneral/AutoGeneratedDefinitions.c +1 -1
- data/src/nginx_module/ConfigGeneral/AutoGeneratedDefinitions.c.cxxcodebuilder +1 -1
- data/src/nginx_module/ConfigGeneral/AutoGeneratedManifestDefaultsInitialization.c +1 -1
- data/src/nginx_module/ConfigGeneral/AutoGeneratedManifestDefaultsInitialization.c.cxxcodebuilder +1 -1
- data/src/nginx_module/ConfigGeneral/AutoGeneratedSetterFuncs.c +1 -1
- data/src/nginx_module/ConfigGeneral/AutoGeneratedSetterFuncs.c.cxxcodebuilder +1 -1
- data/src/nginx_module/Configuration.c +1 -1
- data/src/nginx_module/Configuration.h +1 -1
- data/src/nginx_module/ContentHandler.c +1 -1
- data/src/nginx_module/ContentHandler.h +1 -1
- data/src/nginx_module/LocationConfig/AutoGeneratedCreateFunction.c +1 -1
- data/src/nginx_module/LocationConfig/AutoGeneratedCreateFunction.c.cxxcodebuilder +1 -1
- data/src/nginx_module/LocationConfig/AutoGeneratedHeaderSerialization.c +1 -1
- data/src/nginx_module/LocationConfig/AutoGeneratedHeaderSerialization.c.cxxcodebuilder +1 -1
- data/src/nginx_module/LocationConfig/AutoGeneratedManifestGeneration.c +1 -1
- data/src/nginx_module/LocationConfig/AutoGeneratedManifestGeneration.c.cxxcodebuilder +1 -1
- data/src/nginx_module/LocationConfig/AutoGeneratedMergeFunction.c +1 -1
- data/src/nginx_module/LocationConfig/AutoGeneratedMergeFunction.c.cxxcodebuilder +1 -1
- data/src/nginx_module/LocationConfig/AutoGeneratedStruct.h +1 -1
- data/src/nginx_module/LocationConfig/AutoGeneratedStruct.h.cxxcodebuilder +1 -1
- data/src/nginx_module/MainConfig/AutoGeneratedCreateFunction.c +1 -1
- data/src/nginx_module/MainConfig/AutoGeneratedCreateFunction.c.cxxcodebuilder +1 -1
- data/src/nginx_module/MainConfig/AutoGeneratedManifestGeneration.c +1 -1
- data/src/nginx_module/MainConfig/AutoGeneratedManifestGeneration.c.cxxcodebuilder +1 -1
- data/src/nginx_module/MainConfig/AutoGeneratedStruct.h +1 -1
- data/src/nginx_module/MainConfig/AutoGeneratedStruct.h.cxxcodebuilder +1 -1
- data/src/nginx_module/StaticContentHandler.c +1 -1
- data/src/nginx_module/StaticContentHandler.h +1 -1
- data/src/nginx_module/ngx_http_passenger_module.c +1 -1
- data/src/nginx_module/ngx_http_passenger_module.h +1 -1
- data/src/nodejs_supportlib/phusion_passenger/line_reader.js +1 -1
- data/src/ruby_native_extension/extconf.rb +1 -1
- data/src/ruby_native_extension/passenger_native_support.c +1 -1
- data/src/ruby_supportlib/phusion_passenger/abstract_installer.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/admin_tools/instance.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/admin_tools/instance_registry.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/admin_tools/memory_stats.rb +2 -12
- data/src/ruby_supportlib/phusion_passenger/admin_tools.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/apache2/config_options.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/apache2/config_utils.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/common_library.rb +8 -10
- data/src/ruby_supportlib/phusion_passenger/config/about_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/agent_compiler.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/api_call_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/build_native_support_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/compile_agent_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/compile_nginx_engine_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/detach_process_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/download_agent_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/download_nginx_engine_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/install_agent_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/install_standalone_runtime_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/installation_utils.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/list_instances_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/main.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/nginx_engine_compiler.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/config/reopen_logs_command.rb +6 -1
- data/src/ruby_supportlib/phusion_passenger/config/restart_app_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/system_metrics_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/system_properties_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/utils.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/config/validate_install_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/console_text_template.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/constants.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/debug_logging.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/message_channel.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/message_client.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/native_support.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/nginx/config_options.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/packaging.rb +4 -3
- data/src/ruby_supportlib/phusion_passenger/platform_info/apache.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/apache_detector.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/binary_compatibility.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/compiler.rb +195 -11
- data/src/ruby_supportlib/phusion_passenger/platform_info/crypto.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/curl.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/cxx_portability.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/linux.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/networking.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/openssl.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/operating_system.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/pcre.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/ruby.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/zlib.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/plugin.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/preloader_shared_helpers.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/public_api.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/rack/handler.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/rack/out_of_band_gc.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/rack_handler.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb +2 -7
- data/src/ruby_supportlib/phusion_passenger/request_handler.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/ruby_core_enhancements.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/ruby_core_io_enhancements.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/simple_benchmarking.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/standalone/app_finder.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/standalone/command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/standalone/config_options_list.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/standalone/config_utils.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/standalone/control_utils.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/standalone/main.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/standalone/start_command/builtin_engine.rb +2 -2
- data/src/ruby_supportlib/phusion_passenger/standalone/start_command/nginx_engine.rb +4 -8
- data/src/ruby_supportlib/phusion_passenger/standalone/start_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/standalone/status_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/standalone/stop_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/standalone/version_command.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/utils/ansi_colors.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/utils/download.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/utils/file_system_watcher.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/utils/hosts_file_parser.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/utils/lock.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/utils/native_support_utils.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/utils/progress_bar.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/utils/strscan.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/utils/terminal_choice_menu.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/utils/unseekable_socket.rb +3 -13
- data/src/ruby_supportlib/phusion_passenger/utils.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/vendor/crash_watch/app.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/vendor/crash_watch/base.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/vendor/crash_watch/gdb_controller.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/vendor/crash_watch/lldb_controller.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/vendor/crash_watch/utils.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/vendor/crash_watch/version.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/vendor/daemon_controller/lock_file.rb +8 -6
- data/src/ruby_supportlib/phusion_passenger/vendor/daemon_controller/spawn.rb +4 -3
- data/src/ruby_supportlib/phusion_passenger/vendor/daemon_controller/version.rb +6 -4
- data/src/ruby_supportlib/phusion_passenger/vendor/daemon_controller.rb +395 -579
- data/src/ruby_supportlib/phusion_passenger.rb +8 -8
- data/src/schema_printer/SchemaPrinterMain.cpp +1 -1
- data/src/schema_printer/SchemaPrinterMain.cpp.cxxcodebuilder +1 -1
- metadata +69 -32
- data/doc/DeveloperQuickstart.md +0 -70
- data/src/README.md +0 -7
- data/src/cxx_supportlib/vendor-copy/libuv/README.md +0 -245
- data/src/cxx_supportlib/vendor-copy/libuv/checksparse.sh +0 -234
- data/src/cxx_supportlib/vendor-copy/libuv/common.gypi +0 -210
- data/src/cxx_supportlib/vendor-copy/libuv/gyp_uv.py +0 -93
- data/src/cxx_supportlib/vendor-copy/libuv/include/android-ifaddrs.h +0 -54
- data/src/cxx_supportlib/vendor-copy/libuv/include/pthread-fixes.h +0 -72
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/android-ifaddrs.c +0 -703
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/atomic-ops.h +0 -77
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/linux-core.c +0 -899
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/linux-inotify.c +0 -285
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/linux-syscalls.c +0 -471
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/linux-syscalls.h +0 -158
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/pthread-fixes.c +0 -104
- data/src/cxx_supportlib/vendor-copy/libuv/src/unix/spinlock.h +0 -53
- data/src/cxx_supportlib/vendor-copy/libuv/uv.gyp +0 -508
- /data/src/cxx_supportlib/vendor-copy/libuv/include/{uv-aix.h → uv/aix.h} +0 -0
- /data/src/cxx_supportlib/vendor-copy/libuv/include/{uv-bsd.h → uv/bsd.h} +0 -0
- /data/src/cxx_supportlib/vendor-copy/libuv/include/{uv-sunos.h → uv/sunos.h} +0 -0
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
/* Copyright (c) 2013, Sony Mobile Communications AB
|
|
2
|
-
* Copyright (c) 2012, Google Inc.
|
|
3
|
-
All rights reserved.
|
|
4
|
-
|
|
5
|
-
Redistribution and use in source and binary forms, with or without
|
|
6
|
-
modification, are permitted provided that the following conditions are
|
|
7
|
-
met:
|
|
8
|
-
|
|
9
|
-
* Redistributions of source code must retain the above copyright
|
|
10
|
-
notice, this list of conditions and the following disclaimer.
|
|
11
|
-
* Redistributions in binary form must reproduce the above
|
|
12
|
-
copyright notice, this list of conditions and the following disclaimer
|
|
13
|
-
in the documentation and/or other materials provided with the
|
|
14
|
-
distribution.
|
|
15
|
-
* Neither the name of Google Inc. nor the names of its
|
|
16
|
-
contributors may be used to endorse or promote products derived from
|
|
17
|
-
this software without specific prior written permission.
|
|
18
|
-
|
|
19
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
20
|
-
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
21
|
-
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
22
|
-
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
23
|
-
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
24
|
-
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
25
|
-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
26
|
-
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
27
|
-
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
28
|
-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
29
|
-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
30
|
-
*/
|
|
31
|
-
|
|
32
|
-
/* Android versions < 4.1 have a broken pthread_sigmask.
|
|
33
|
-
* Note that this block of code must come before any inclusion of
|
|
34
|
-
* pthread-fixes.h so that the real pthread_sigmask can be referenced.
|
|
35
|
-
* */
|
|
36
|
-
#include <errno.h>
|
|
37
|
-
#include <pthread.h>
|
|
38
|
-
#include <signal.h>
|
|
39
|
-
|
|
40
|
-
int uv__pthread_sigmask(int how, const sigset_t* set, sigset_t* oset) {
|
|
41
|
-
static int workaround;
|
|
42
|
-
|
|
43
|
-
if (workaround) {
|
|
44
|
-
return sigprocmask(how, set, oset);
|
|
45
|
-
} else if (pthread_sigmask(how, set, oset)) {
|
|
46
|
-
if (errno == EINVAL && sigprocmask(how, set, oset) == 0) {
|
|
47
|
-
workaround = 1;
|
|
48
|
-
return 0;
|
|
49
|
-
} else {
|
|
50
|
-
return -1;
|
|
51
|
-
}
|
|
52
|
-
} else {
|
|
53
|
-
return 0;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/*Android doesn't provide pthread_barrier_t for now.*/
|
|
58
|
-
#ifndef PTHREAD_BARRIER_SERIAL_THREAD
|
|
59
|
-
|
|
60
|
-
#include "pthread-fixes.h"
|
|
61
|
-
|
|
62
|
-
int pthread_barrier_init(pthread_barrier_t* barrier,
|
|
63
|
-
const void* barrier_attr,
|
|
64
|
-
unsigned count) {
|
|
65
|
-
barrier->count = count;
|
|
66
|
-
pthread_mutex_init(&barrier->mutex, NULL);
|
|
67
|
-
pthread_cond_init(&barrier->cond, NULL);
|
|
68
|
-
return 0;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
int pthread_barrier_wait(pthread_barrier_t* barrier) {
|
|
72
|
-
/* Lock the mutex*/
|
|
73
|
-
pthread_mutex_lock(&barrier->mutex);
|
|
74
|
-
/* Decrement the count. If this is the first thread to reach 0, wake up
|
|
75
|
-
waiters, unlock the mutex, then return PTHREAD_BARRIER_SERIAL_THREAD.*/
|
|
76
|
-
if (--barrier->count == 0) {
|
|
77
|
-
/* First thread to reach the barrier */
|
|
78
|
-
pthread_cond_broadcast(&barrier->cond);
|
|
79
|
-
pthread_mutex_unlock(&barrier->mutex);
|
|
80
|
-
return PTHREAD_BARRIER_SERIAL_THREAD;
|
|
81
|
-
}
|
|
82
|
-
/* Otherwise, wait for other threads until the count reaches 0, then
|
|
83
|
-
return 0 to indicate this is not the first thread.*/
|
|
84
|
-
do {
|
|
85
|
-
pthread_cond_wait(&barrier->cond, &barrier->mutex);
|
|
86
|
-
} while (barrier->count > 0);
|
|
87
|
-
|
|
88
|
-
pthread_mutex_unlock(&barrier->mutex);
|
|
89
|
-
return 0;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
int pthread_barrier_destroy(pthread_barrier_t *barrier) {
|
|
93
|
-
barrier->count = 0;
|
|
94
|
-
pthread_cond_destroy(&barrier->cond);
|
|
95
|
-
pthread_mutex_destroy(&barrier->mutex);
|
|
96
|
-
return 0;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
#endif /* defined(PTHREAD_BARRIER_SERIAL_THREAD) */
|
|
100
|
-
|
|
101
|
-
int pthread_yield(void) {
|
|
102
|
-
sched_yield();
|
|
103
|
-
return 0;
|
|
104
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/* Copyright (c) 2013, Ben Noordhuis <info@bnoordhuis.nl>
|
|
2
|
-
*
|
|
3
|
-
* Permission to use, copy, modify, and/or distribute this software for any
|
|
4
|
-
* purpose with or without fee is hereby granted, provided that the above
|
|
5
|
-
* copyright notice and this permission notice appear in all copies.
|
|
6
|
-
*
|
|
7
|
-
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
8
|
-
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
9
|
-
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
10
|
-
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
11
|
-
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
12
|
-
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
13
|
-
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
#ifndef UV_SPINLOCK_H_
|
|
17
|
-
#define UV_SPINLOCK_H_
|
|
18
|
-
|
|
19
|
-
#include "internal.h" /* ACCESS_ONCE, UV_UNUSED */
|
|
20
|
-
#include "atomic-ops.h"
|
|
21
|
-
|
|
22
|
-
#define UV_SPINLOCK_INITIALIZER { 0 }
|
|
23
|
-
|
|
24
|
-
typedef struct {
|
|
25
|
-
int lock;
|
|
26
|
-
} uv_spinlock_t;
|
|
27
|
-
|
|
28
|
-
UV_UNUSED(static void uv_spinlock_init(uv_spinlock_t* spinlock));
|
|
29
|
-
UV_UNUSED(static void uv_spinlock_lock(uv_spinlock_t* spinlock));
|
|
30
|
-
UV_UNUSED(static void uv_spinlock_unlock(uv_spinlock_t* spinlock));
|
|
31
|
-
UV_UNUSED(static int uv_spinlock_trylock(uv_spinlock_t* spinlock));
|
|
32
|
-
|
|
33
|
-
UV_UNUSED(static void uv_spinlock_init(uv_spinlock_t* spinlock)) {
|
|
34
|
-
ACCESS_ONCE(int, spinlock->lock) = 0;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
UV_UNUSED(static void uv_spinlock_lock(uv_spinlock_t* spinlock)) {
|
|
38
|
-
while (!uv_spinlock_trylock(spinlock)) cpu_relax();
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
UV_UNUSED(static void uv_spinlock_unlock(uv_spinlock_t* spinlock)) {
|
|
42
|
-
ACCESS_ONCE(int, spinlock->lock) = 0;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
UV_UNUSED(static int uv_spinlock_trylock(uv_spinlock_t* spinlock)) {
|
|
46
|
-
/* TODO(bnoordhuis) Maybe change to a ticket lock to guarantee fair queueing.
|
|
47
|
-
* Not really critical until we have locks that are (frequently) contended
|
|
48
|
-
* for by several threads.
|
|
49
|
-
*/
|
|
50
|
-
return 0 == cmpxchgi(&spinlock->lock, 0, 1);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
#endif /* UV_SPINLOCK_H_ */
|
|
@@ -1,508 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
'target_defaults': {
|
|
3
|
-
'conditions': [
|
|
4
|
-
['OS != "win"', {
|
|
5
|
-
'defines': [
|
|
6
|
-
'_LARGEFILE_SOURCE',
|
|
7
|
-
'_FILE_OFFSET_BITS=64',
|
|
8
|
-
],
|
|
9
|
-
'conditions': [
|
|
10
|
-
['OS=="solaris"', {
|
|
11
|
-
'cflags': [ '-pthreads' ],
|
|
12
|
-
}],
|
|
13
|
-
['OS not in "solaris android"', {
|
|
14
|
-
'cflags': [ '-pthread' ],
|
|
15
|
-
}],
|
|
16
|
-
],
|
|
17
|
-
}],
|
|
18
|
-
],
|
|
19
|
-
'xcode_settings': {
|
|
20
|
-
'WARNING_CFLAGS': [ '-Wall', '-Wextra', '-Wno-unused-parameter' ],
|
|
21
|
-
'OTHER_CFLAGS': [ '-g', '--std=gnu89', '-pedantic' ],
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
'targets': [
|
|
26
|
-
{
|
|
27
|
-
'target_name': 'libuv',
|
|
28
|
-
'type': '<(uv_library)',
|
|
29
|
-
'include_dirs': [
|
|
30
|
-
'include',
|
|
31
|
-
'src/',
|
|
32
|
-
],
|
|
33
|
-
'direct_dependent_settings': {
|
|
34
|
-
'include_dirs': [ 'include' ],
|
|
35
|
-
'conditions': [
|
|
36
|
-
['OS != "win"', {
|
|
37
|
-
'defines': [
|
|
38
|
-
'_LARGEFILE_SOURCE',
|
|
39
|
-
'_FILE_OFFSET_BITS=64',
|
|
40
|
-
],
|
|
41
|
-
}],
|
|
42
|
-
['OS in "mac ios"', {
|
|
43
|
-
'defines': [ '_DARWIN_USE_64_BIT_INODE=1' ],
|
|
44
|
-
}],
|
|
45
|
-
['OS == "linux"', {
|
|
46
|
-
'defines': [ '_POSIX_C_SOURCE=200112' ],
|
|
47
|
-
}],
|
|
48
|
-
],
|
|
49
|
-
},
|
|
50
|
-
'sources': [
|
|
51
|
-
'common.gypi',
|
|
52
|
-
'include/uv.h',
|
|
53
|
-
'include/tree.h',
|
|
54
|
-
'include/uv-errno.h',
|
|
55
|
-
'include/uv-threadpool.h',
|
|
56
|
-
'include/uv-version.h',
|
|
57
|
-
'src/fs-poll.c',
|
|
58
|
-
'src/heap-inl.h',
|
|
59
|
-
'src/inet.c',
|
|
60
|
-
'src/queue.h',
|
|
61
|
-
'src/threadpool.c',
|
|
62
|
-
'src/uv-common.c',
|
|
63
|
-
'src/uv-common.h',
|
|
64
|
-
'src/version.c'
|
|
65
|
-
],
|
|
66
|
-
'conditions': [
|
|
67
|
-
[ 'OS=="win"', {
|
|
68
|
-
'defines': [
|
|
69
|
-
'_WIN32_WINNT=0x0600',
|
|
70
|
-
'_GNU_SOURCE',
|
|
71
|
-
],
|
|
72
|
-
'sources': [
|
|
73
|
-
'include/uv-win.h',
|
|
74
|
-
'src/win/async.c',
|
|
75
|
-
'src/win/atomicops-inl.h',
|
|
76
|
-
'src/win/core.c',
|
|
77
|
-
'src/win/dl.c',
|
|
78
|
-
'src/win/error.c',
|
|
79
|
-
'src/win/fs.c',
|
|
80
|
-
'src/win/fs-event.c',
|
|
81
|
-
'src/win/getaddrinfo.c',
|
|
82
|
-
'src/win/getnameinfo.c',
|
|
83
|
-
'src/win/handle.c',
|
|
84
|
-
'src/win/handle-inl.h',
|
|
85
|
-
'src/win/internal.h',
|
|
86
|
-
'src/win/loop-watcher.c',
|
|
87
|
-
'src/win/pipe.c',
|
|
88
|
-
'src/win/thread.c',
|
|
89
|
-
'src/win/poll.c',
|
|
90
|
-
'src/win/process.c',
|
|
91
|
-
'src/win/process-stdio.c',
|
|
92
|
-
'src/win/req.c',
|
|
93
|
-
'src/win/req-inl.h',
|
|
94
|
-
'src/win/signal.c',
|
|
95
|
-
'src/win/stream.c',
|
|
96
|
-
'src/win/stream-inl.h',
|
|
97
|
-
'src/win/tcp.c',
|
|
98
|
-
'src/win/tty.c',
|
|
99
|
-
'src/win/timer.c',
|
|
100
|
-
'src/win/udp.c',
|
|
101
|
-
'src/win/util.c',
|
|
102
|
-
'src/win/winapi.c',
|
|
103
|
-
'src/win/winapi.h',
|
|
104
|
-
'src/win/winsock.c',
|
|
105
|
-
'src/win/winsock.h',
|
|
106
|
-
],
|
|
107
|
-
'conditions': [
|
|
108
|
-
['MSVS_VERSION < "2015"', {
|
|
109
|
-
'sources': [
|
|
110
|
-
'src/win/snprintf.c'
|
|
111
|
-
]
|
|
112
|
-
}]
|
|
113
|
-
],
|
|
114
|
-
'link_settings': {
|
|
115
|
-
'libraries': [
|
|
116
|
-
'-ladvapi32',
|
|
117
|
-
'-liphlpapi',
|
|
118
|
-
'-lpsapi',
|
|
119
|
-
'-lshell32',
|
|
120
|
-
'-luserenv',
|
|
121
|
-
'-lws2_32'
|
|
122
|
-
],
|
|
123
|
-
},
|
|
124
|
-
}, { # Not Windows i.e. POSIX
|
|
125
|
-
'cflags': [
|
|
126
|
-
'-g',
|
|
127
|
-
'--std=gnu89',
|
|
128
|
-
'-pedantic',
|
|
129
|
-
'-Wall',
|
|
130
|
-
'-Wextra',
|
|
131
|
-
'-Wno-unused-parameter',
|
|
132
|
-
],
|
|
133
|
-
'sources': [
|
|
134
|
-
'include/uv-unix.h',
|
|
135
|
-
'include/uv-linux.h',
|
|
136
|
-
'include/uv-sunos.h',
|
|
137
|
-
'include/uv-darwin.h',
|
|
138
|
-
'include/uv-bsd.h',
|
|
139
|
-
'include/uv-aix.h',
|
|
140
|
-
'src/unix/async.c',
|
|
141
|
-
'src/unix/atomic-ops.h',
|
|
142
|
-
'src/unix/core.c',
|
|
143
|
-
'src/unix/dl.c',
|
|
144
|
-
'src/unix/fs.c',
|
|
145
|
-
'src/unix/getaddrinfo.c',
|
|
146
|
-
'src/unix/getnameinfo.c',
|
|
147
|
-
'src/unix/internal.h',
|
|
148
|
-
'src/unix/loop.c',
|
|
149
|
-
'src/unix/loop-watcher.c',
|
|
150
|
-
'src/unix/pipe.c',
|
|
151
|
-
'src/unix/poll.c',
|
|
152
|
-
'src/unix/process.c',
|
|
153
|
-
'src/unix/signal.c',
|
|
154
|
-
'src/unix/spinlock.h',
|
|
155
|
-
'src/unix/stream.c',
|
|
156
|
-
'src/unix/tcp.c',
|
|
157
|
-
'src/unix/thread.c',
|
|
158
|
-
'src/unix/timer.c',
|
|
159
|
-
'src/unix/tty.c',
|
|
160
|
-
'src/unix/udp.c',
|
|
161
|
-
],
|
|
162
|
-
'link_settings': {
|
|
163
|
-
'libraries': [ '-lm' ],
|
|
164
|
-
'conditions': [
|
|
165
|
-
['OS=="solaris"', {
|
|
166
|
-
'ldflags': [ '-pthreads' ],
|
|
167
|
-
}],
|
|
168
|
-
['OS != "solaris" and OS != "android"', {
|
|
169
|
-
'ldflags': [ '-pthread' ],
|
|
170
|
-
}],
|
|
171
|
-
],
|
|
172
|
-
},
|
|
173
|
-
'conditions': [
|
|
174
|
-
['uv_library=="shared_library"', {
|
|
175
|
-
'cflags': [ '-fPIC' ],
|
|
176
|
-
}],
|
|
177
|
-
['uv_library=="shared_library" and OS!="mac"', {
|
|
178
|
-
# This will cause gyp to set soname
|
|
179
|
-
# Must correspond with UV_VERSION_MAJOR
|
|
180
|
-
# in include/uv-version.h
|
|
181
|
-
'product_extension': 'so.1',
|
|
182
|
-
}],
|
|
183
|
-
],
|
|
184
|
-
}],
|
|
185
|
-
[ 'OS in "linux mac ios android"', {
|
|
186
|
-
'sources': [ 'src/unix/proctitle.c' ],
|
|
187
|
-
}],
|
|
188
|
-
[ 'OS in "mac ios"', {
|
|
189
|
-
'sources': [
|
|
190
|
-
'src/unix/darwin.c',
|
|
191
|
-
'src/unix/fsevents.c',
|
|
192
|
-
'src/unix/darwin-proctitle.c',
|
|
193
|
-
],
|
|
194
|
-
'defines': [
|
|
195
|
-
'_DARWIN_USE_64_BIT_INODE=1',
|
|
196
|
-
'_DARWIN_UNLIMITED_SELECT=1',
|
|
197
|
-
]
|
|
198
|
-
}],
|
|
199
|
-
[ 'OS!="mac"', {
|
|
200
|
-
# Enable on all platforms except OS X. The antique gcc/clang that
|
|
201
|
-
# ships with Xcode emits waaaay too many false positives.
|
|
202
|
-
'cflags': [ '-Wstrict-aliasing' ],
|
|
203
|
-
}],
|
|
204
|
-
[ 'OS=="linux"', {
|
|
205
|
-
'defines': [ '_GNU_SOURCE' ],
|
|
206
|
-
'sources': [
|
|
207
|
-
'src/unix/linux-core.c',
|
|
208
|
-
'src/unix/linux-inotify.c',
|
|
209
|
-
'src/unix/linux-syscalls.c',
|
|
210
|
-
'src/unix/linux-syscalls.h',
|
|
211
|
-
],
|
|
212
|
-
'link_settings': {
|
|
213
|
-
'libraries': [ '-ldl', '-lrt' ],
|
|
214
|
-
},
|
|
215
|
-
}],
|
|
216
|
-
[ 'OS=="android"', {
|
|
217
|
-
'sources': [
|
|
218
|
-
'src/unix/linux-core.c',
|
|
219
|
-
'src/unix/linux-inotify.c',
|
|
220
|
-
'src/unix/linux-syscalls.c',
|
|
221
|
-
'src/unix/linux-syscalls.h',
|
|
222
|
-
'src/unix/pthread-fixes.c',
|
|
223
|
-
'src/unix/android-ifaddrs.c'
|
|
224
|
-
],
|
|
225
|
-
'link_settings': {
|
|
226
|
-
'libraries': [ '-ldl' ],
|
|
227
|
-
},
|
|
228
|
-
}],
|
|
229
|
-
[ 'OS=="solaris"', {
|
|
230
|
-
'sources': [ 'src/unix/sunos.c' ],
|
|
231
|
-
'defines': [
|
|
232
|
-
'__EXTENSIONS__',
|
|
233
|
-
'_XOPEN_SOURCE=500',
|
|
234
|
-
],
|
|
235
|
-
'link_settings': {
|
|
236
|
-
'libraries': [
|
|
237
|
-
'-lkstat',
|
|
238
|
-
'-lnsl',
|
|
239
|
-
'-lsendfile',
|
|
240
|
-
'-lsocket',
|
|
241
|
-
],
|
|
242
|
-
},
|
|
243
|
-
}],
|
|
244
|
-
[ 'OS=="aix"', {
|
|
245
|
-
'sources': [ 'src/unix/aix.c' ],
|
|
246
|
-
'defines': [
|
|
247
|
-
'_ALL_SOURCE',
|
|
248
|
-
'_XOPEN_SOURCE=500',
|
|
249
|
-
'_LINUX_SOURCE_COMPAT',
|
|
250
|
-
],
|
|
251
|
-
'link_settings': {
|
|
252
|
-
'libraries': [
|
|
253
|
-
'-lperfstat',
|
|
254
|
-
],
|
|
255
|
-
},
|
|
256
|
-
}],
|
|
257
|
-
[ 'OS=="freebsd" or OS=="dragonflybsd"', {
|
|
258
|
-
'sources': [ 'src/unix/freebsd.c' ],
|
|
259
|
-
}],
|
|
260
|
-
[ 'OS=="openbsd"', {
|
|
261
|
-
'sources': [ 'src/unix/openbsd.c' ],
|
|
262
|
-
}],
|
|
263
|
-
[ 'OS=="netbsd"', {
|
|
264
|
-
'sources': [ 'src/unix/netbsd.c' ],
|
|
265
|
-
}],
|
|
266
|
-
[ 'OS in "freebsd dragonflybsd openbsd netbsd".split()', {
|
|
267
|
-
'link_settings': {
|
|
268
|
-
'libraries': [ '-lkvm' ],
|
|
269
|
-
},
|
|
270
|
-
}],
|
|
271
|
-
[ 'OS in "ios mac freebsd dragonflybsd openbsd netbsd".split()', {
|
|
272
|
-
'sources': [ 'src/unix/kqueue.c' ],
|
|
273
|
-
}],
|
|
274
|
-
['uv_library=="shared_library"', {
|
|
275
|
-
'defines': [ 'BUILDING_UV_SHARED=1' ]
|
|
276
|
-
}],
|
|
277
|
-
]
|
|
278
|
-
},
|
|
279
|
-
|
|
280
|
-
{
|
|
281
|
-
'target_name': 'run-tests',
|
|
282
|
-
'type': 'executable',
|
|
283
|
-
'dependencies': [ 'libuv' ],
|
|
284
|
-
'sources': [
|
|
285
|
-
'test/blackhole-server.c',
|
|
286
|
-
'test/echo-server.c',
|
|
287
|
-
'test/run-tests.c',
|
|
288
|
-
'test/runner.c',
|
|
289
|
-
'test/runner.h',
|
|
290
|
-
'test/test-get-loadavg.c',
|
|
291
|
-
'test/task.h',
|
|
292
|
-
'test/test-active.c',
|
|
293
|
-
'test/test-async.c',
|
|
294
|
-
'test/test-async-null-cb.c',
|
|
295
|
-
'test/test-callback-stack.c',
|
|
296
|
-
'test/test-callback-order.c',
|
|
297
|
-
'test/test-close-fd.c',
|
|
298
|
-
'test/test-close-order.c',
|
|
299
|
-
'test/test-connection-fail.c',
|
|
300
|
-
'test/test-cwd-and-chdir.c',
|
|
301
|
-
'test/test-default-loop-close.c',
|
|
302
|
-
'test/test-delayed-accept.c',
|
|
303
|
-
'test/test-error.c',
|
|
304
|
-
'test/test-embed.c',
|
|
305
|
-
'test/test-emfile.c',
|
|
306
|
-
'test/test-fail-always.c',
|
|
307
|
-
'test/test-fs.c',
|
|
308
|
-
'test/test-fs-event.c',
|
|
309
|
-
'test/test-get-currentexe.c',
|
|
310
|
-
'test/test-get-memory.c',
|
|
311
|
-
'test/test-getaddrinfo.c',
|
|
312
|
-
'test/test-getnameinfo.c',
|
|
313
|
-
'test/test-getsockname.c',
|
|
314
|
-
'test/test-handle-fileno.c',
|
|
315
|
-
'test/test-homedir.c',
|
|
316
|
-
'test/test-hrtime.c',
|
|
317
|
-
'test/test-idle.c',
|
|
318
|
-
'test/test-ip6-addr.c',
|
|
319
|
-
'test/test-ipc.c',
|
|
320
|
-
'test/test-ipc-send-recv.c',
|
|
321
|
-
'test/test-list.h',
|
|
322
|
-
'test/test-loop-handles.c',
|
|
323
|
-
'test/test-loop-alive.c',
|
|
324
|
-
'test/test-loop-close.c',
|
|
325
|
-
'test/test-loop-stop.c',
|
|
326
|
-
'test/test-loop-time.c',
|
|
327
|
-
'test/test-loop-configure.c',
|
|
328
|
-
'test/test-walk-handles.c',
|
|
329
|
-
'test/test-watcher-cross-stop.c',
|
|
330
|
-
'test/test-multiple-listen.c',
|
|
331
|
-
'test/test-osx-select.c',
|
|
332
|
-
'test/test-pass-always.c',
|
|
333
|
-
'test/test-ping-pong.c',
|
|
334
|
-
'test/test-pipe-bind-error.c',
|
|
335
|
-
'test/test-pipe-connect-error.c',
|
|
336
|
-
'test/test-pipe-connect-multiple.c',
|
|
337
|
-
'test/test-pipe-connect-prepare.c',
|
|
338
|
-
'test/test-pipe-getsockname.c',
|
|
339
|
-
'test/test-pipe-pending-instances.c',
|
|
340
|
-
'test/test-pipe-sendmsg.c',
|
|
341
|
-
'test/test-pipe-server-close.c',
|
|
342
|
-
'test/test-pipe-close-stdout-read-stdin.c',
|
|
343
|
-
'test/test-pipe-set-non-blocking.c',
|
|
344
|
-
'test/test-platform-output.c',
|
|
345
|
-
'test/test-poll.c',
|
|
346
|
-
'test/test-poll-close.c',
|
|
347
|
-
'test/test-poll-close-doesnt-corrupt-stack.c',
|
|
348
|
-
'test/test-poll-closesocket.c',
|
|
349
|
-
'test/test-process-title.c',
|
|
350
|
-
'test/test-queue-foreach-delete.c',
|
|
351
|
-
'test/test-ref.c',
|
|
352
|
-
'test/test-run-nowait.c',
|
|
353
|
-
'test/test-run-once.c',
|
|
354
|
-
'test/test-semaphore.c',
|
|
355
|
-
'test/test-shutdown-close.c',
|
|
356
|
-
'test/test-shutdown-eof.c',
|
|
357
|
-
'test/test-shutdown-twice.c',
|
|
358
|
-
'test/test-signal.c',
|
|
359
|
-
'test/test-signal-multiple-loops.c',
|
|
360
|
-
'test/test-socket-buffer-size.c',
|
|
361
|
-
'test/test-spawn.c',
|
|
362
|
-
'test/test-fs-poll.c',
|
|
363
|
-
'test/test-stdio-over-pipes.c',
|
|
364
|
-
'test/test-tcp-bind-error.c',
|
|
365
|
-
'test/test-tcp-bind6-error.c',
|
|
366
|
-
'test/test-tcp-close.c',
|
|
367
|
-
'test/test-tcp-close-accept.c',
|
|
368
|
-
'test/test-tcp-close-while-connecting.c',
|
|
369
|
-
'test/test-tcp-create-socket-early.c',
|
|
370
|
-
'test/test-tcp-connect-error-after-write.c',
|
|
371
|
-
'test/test-tcp-shutdown-after-write.c',
|
|
372
|
-
'test/test-tcp-flags.c',
|
|
373
|
-
'test/test-tcp-connect-error.c',
|
|
374
|
-
'test/test-tcp-connect-timeout.c',
|
|
375
|
-
'test/test-tcp-connect6-error.c',
|
|
376
|
-
'test/test-tcp-open.c',
|
|
377
|
-
'test/test-tcp-write-to-half-open-connection.c',
|
|
378
|
-
'test/test-tcp-write-after-connect.c',
|
|
379
|
-
'test/test-tcp-writealot.c',
|
|
380
|
-
'test/test-tcp-write-fail.c',
|
|
381
|
-
'test/test-tcp-try-write.c',
|
|
382
|
-
'test/test-tcp-unexpected-read.c',
|
|
383
|
-
'test/test-tcp-oob.c',
|
|
384
|
-
'test/test-tcp-read-stop.c',
|
|
385
|
-
'test/test-tcp-write-queue-order.c',
|
|
386
|
-
'test/test-threadpool.c',
|
|
387
|
-
'test/test-threadpool-cancel.c',
|
|
388
|
-
'test/test-thread-equal.c',
|
|
389
|
-
'test/test-mutexes.c',
|
|
390
|
-
'test/test-thread.c',
|
|
391
|
-
'test/test-barrier.c',
|
|
392
|
-
'test/test-condvar.c',
|
|
393
|
-
'test/test-timer-again.c',
|
|
394
|
-
'test/test-timer-from-check.c',
|
|
395
|
-
'test/test-timer.c',
|
|
396
|
-
'test/test-tty.c',
|
|
397
|
-
'test/test-udp-bind.c',
|
|
398
|
-
'test/test-udp-create-socket-early.c',
|
|
399
|
-
'test/test-udp-dgram-too-big.c',
|
|
400
|
-
'test/test-udp-ipv6.c',
|
|
401
|
-
'test/test-udp-open.c',
|
|
402
|
-
'test/test-udp-options.c',
|
|
403
|
-
'test/test-udp-send-and-recv.c',
|
|
404
|
-
'test/test-udp-send-immediate.c',
|
|
405
|
-
'test/test-udp-send-unreachable.c',
|
|
406
|
-
'test/test-udp-multicast-join.c',
|
|
407
|
-
'test/test-udp-multicast-join6.c',
|
|
408
|
-
'test/test-dlerror.c',
|
|
409
|
-
'test/test-udp-multicast-ttl.c',
|
|
410
|
-
'test/test-ip4-addr.c',
|
|
411
|
-
'test/test-ip6-addr.c',
|
|
412
|
-
'test/test-udp-multicast-interface.c',
|
|
413
|
-
'test/test-udp-multicast-interface6.c',
|
|
414
|
-
'test/test-udp-try-send.c',
|
|
415
|
-
],
|
|
416
|
-
'conditions': [
|
|
417
|
-
[ 'OS=="win"', {
|
|
418
|
-
'sources': [
|
|
419
|
-
'test/runner-win.c',
|
|
420
|
-
'test/runner-win.h'
|
|
421
|
-
],
|
|
422
|
-
'libraries': [ '-lws2_32' ]
|
|
423
|
-
}, { # POSIX
|
|
424
|
-
'defines': [ '_GNU_SOURCE' ],
|
|
425
|
-
'sources': [
|
|
426
|
-
'test/runner-unix.c',
|
|
427
|
-
'test/runner-unix.h',
|
|
428
|
-
],
|
|
429
|
-
}],
|
|
430
|
-
[ 'OS=="solaris"', { # make test-fs.c compile, needs _POSIX_C_SOURCE
|
|
431
|
-
'defines': [
|
|
432
|
-
'__EXTENSIONS__',
|
|
433
|
-
'_XOPEN_SOURCE=500',
|
|
434
|
-
],
|
|
435
|
-
}],
|
|
436
|
-
[ 'OS=="aix"', { # make test-fs.c compile, needs _POSIX_C_SOURCE
|
|
437
|
-
'defines': [
|
|
438
|
-
'_ALL_SOURCE',
|
|
439
|
-
'_XOPEN_SOURCE=500',
|
|
440
|
-
],
|
|
441
|
-
}],
|
|
442
|
-
['uv_library=="shared_library"', {
|
|
443
|
-
'defines': [ 'USING_UV_SHARED=1' ]
|
|
444
|
-
}],
|
|
445
|
-
],
|
|
446
|
-
'msvs-settings': {
|
|
447
|
-
'VCLinkerTool': {
|
|
448
|
-
'SubSystem': 1, # /subsystem:console
|
|
449
|
-
},
|
|
450
|
-
},
|
|
451
|
-
},
|
|
452
|
-
|
|
453
|
-
{
|
|
454
|
-
'target_name': 'run-benchmarks',
|
|
455
|
-
'type': 'executable',
|
|
456
|
-
'dependencies': [ 'libuv' ],
|
|
457
|
-
'sources': [
|
|
458
|
-
'test/benchmark-async.c',
|
|
459
|
-
'test/benchmark-async-pummel.c',
|
|
460
|
-
'test/benchmark-fs-stat.c',
|
|
461
|
-
'test/benchmark-getaddrinfo.c',
|
|
462
|
-
'test/benchmark-list.h',
|
|
463
|
-
'test/benchmark-loop-count.c',
|
|
464
|
-
'test/benchmark-million-async.c',
|
|
465
|
-
'test/benchmark-million-timers.c',
|
|
466
|
-
'test/benchmark-multi-accept.c',
|
|
467
|
-
'test/benchmark-ping-pongs.c',
|
|
468
|
-
'test/benchmark-pound.c',
|
|
469
|
-
'test/benchmark-pump.c',
|
|
470
|
-
'test/benchmark-sizes.c',
|
|
471
|
-
'test/benchmark-spawn.c',
|
|
472
|
-
'test/benchmark-thread.c',
|
|
473
|
-
'test/benchmark-tcp-write-batch.c',
|
|
474
|
-
'test/benchmark-udp-pummel.c',
|
|
475
|
-
'test/dns-server.c',
|
|
476
|
-
'test/echo-server.c',
|
|
477
|
-
'test/blackhole-server.c',
|
|
478
|
-
'test/run-benchmarks.c',
|
|
479
|
-
'test/runner.c',
|
|
480
|
-
'test/runner.h',
|
|
481
|
-
'test/task.h',
|
|
482
|
-
],
|
|
483
|
-
'conditions': [
|
|
484
|
-
[ 'OS=="win"', {
|
|
485
|
-
'sources': [
|
|
486
|
-
'test/runner-win.c',
|
|
487
|
-
'test/runner-win.h',
|
|
488
|
-
],
|
|
489
|
-
'libraries': [ '-lws2_32' ]
|
|
490
|
-
}, { # POSIX
|
|
491
|
-
'defines': [ '_GNU_SOURCE' ],
|
|
492
|
-
'sources': [
|
|
493
|
-
'test/runner-unix.c',
|
|
494
|
-
'test/runner-unix.h',
|
|
495
|
-
]
|
|
496
|
-
}],
|
|
497
|
-
['uv_library=="shared_library"', {
|
|
498
|
-
'defines': [ 'USING_UV_SHARED=1' ]
|
|
499
|
-
}],
|
|
500
|
-
],
|
|
501
|
-
'msvs-settings': {
|
|
502
|
-
'VCLinkerTool': {
|
|
503
|
-
'SubSystem': 1, # /subsystem:console
|
|
504
|
-
},
|
|
505
|
-
},
|
|
506
|
-
},
|
|
507
|
-
]
|
|
508
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|