
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
MainLoop is a simple main application implementation to control subprocesses(children) and threads.
Features:
Example usage:
require 'main_loop'
logger = Logger.new(STDOUT)
logger.level = Logger::DEBUG
bus = MainLoop::Bus.new
dispatcher = MainLoop::Dispatcher.new(bus, logger: logger)
mainloop = MainLoop::Loop.new(bus, dispatcher, logger: logger)
MainLoop::ProcessHandler.new dispatcher, 'test1', retry_count: 3, logger: logger do
sleep 2
exit! 0
end
MainLoop::ProcessHandler.new dispatcher, 'test2', retry_count: 2, logger: logger do
trap 'TERM' do
exit(0)
end
sleep 2
exit! 1
end
MainLoop::ThreadHandler.new dispatcher, 'thread2', retry_count: 0, logger: logger do
system('sleep 15;echo ok')
end
mainloop.run
It's a gem:
gem install main_loop
There's also the wonders of the Gemfile:
gem 'main_loop'
FAQs
Unknown package
We found that main_loop demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.