#!/bin/sh

useradd $HOSTNAME

ulimit -p 15

echo "$1" > prog.c
gcc -o prog prog.c

if [ -f "prog" ]
then
  sudo -u $HOSTNAME ./prog
fi

#!/bin/sh

useradd $HOSTNAME
su $HOSTNAME
ulimit -p 15

echo "$1" > prog.c
gcc -o prog prog.c

if [ -f "prog" ]
then
  ./prog
fi

Revert "still trying to prevent fork bomb"
Revert "still trying to prevent fork bomb"

This reverts commit fc6ef53131b6440ee92d8b3906621dcfccdbe6af.
