README.md in assassin-0.4.2 vs README.md in assassin-1.4.2
- old
+ new
@@ -6,13 +6,15 @@
--------
no zombies ever, not even on `exit!` or `kill -9`
USAGE
-----
- pipe = IO.popen 'program-that-must-not-be-zombied'
+```ruby
+ pipe = IO.popen 'some-program-that-must-not-be-zombied'
Assassin.at_exit_kill(pipe.pid)
+```
also see lib/assassin.rb and test/assassin_test.rb
DESCRIPTION
-----------
@@ -25,10 +27,10 @@
through escalation of signals that a child process is shut down and does not
become a zombie.
this becomes espcially important for libraries which spawn processes, such
as via `IO.popen` that need to ensure those children are cleaned up, but
- which cannot control whether client code may call `exit`. this approach
+ which cannot control whether client code may call `exit!`. this approach
also handles being `kill -9`d - something no `at_exit{}` handler can
promise.
INSTALL
-------