News for hackers. Stuff that matters.
Re:Killing processes that don't want to die by anon49124 on Monday September 24, 2018 @09:53PM (#18062962)
Most old-school shutdown init scripts called the following at some point before shutting down or rebooting:

   kill -TERM -1 # sending all processes the TERM signal...
   # ...
   sleep $SOME_SECS
   # ...
   kill -9 -1 # sending all processes the KILL signal...
   # ...
   sleep $SOME_MORE_SECS
Also old-school local DoS from root:

   # used to be very bad
   rm -rf / ; kill -9 -1
Another classic:

   # bash fork bomb
   :(){ :|:& };:
   # creates a function : and calls it
   # spawns a background process that pipes to itself, which creates another process... effectively two recursive calls per call.
Re:Killing processes that don't want to die by adrianratnapala on Tuesday September 25, 2018 @01:36AM (#18063855)
Why are the pipes useful for the fork bomb? Or is it just a visual thing?
Re:Killing processes that don't want to die by mongol on Tuesday September 25, 2018 @01:39AM (#18063870)
I think it is important to make it explode exponentially. Without it, the bomb will be linear.
Re:Killing processes that don't want to die by jwilk on Tuesday September 25, 2018 @04:29AM (#18064508)
FWIW, pipes aren't necessary to achieve explosion. Here's an example fork bomb without pipes:

    :(){ :&:& }; :