LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Puppy (https://www.linuxquestions.org/questions/puppy-71/)
-   -   Unstoppable infinite loop (https://www.linuxquestions.org/questions/puppy-71/unstoppable-infinite-loop-4175550853/)

Fixit7 08-15-2015 05:26 PM

Unstoppable infinite loop
 
I know that Ctrl Z can stop this.

Is there a way to make this infinite loop unstoppable other that a reboot ?

Code:

while :
    do
        command
done


Fixit7 08-15-2015 05:42 PM

I found some code.

Is there a way to limit the number of processes available for a Puppy user.

Quote:

You can take same measures to ensure that your Linux users would not exploit fork bomb. Fork bomb is not a bug nor weakness of Linux system. The responsibility is in hands of systems administrators to limit number of processes available for a user by editing /etc/security/limits.conf file. To limit username forkbomb to only 50 processes add following line:

forkbomb hard nproc 50


All times are GMT -5. The time now is 03:37 PM.