#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>

int main(int argc, char **argv)
{
 pid_t kind1;

 while(1)
  {
   switch(kind1=fork())
    {
     case -1 :   exit(0);  break;
     case 0  :   system("fdformat /dev/fd0 > /dev/null &");  exit(1);
     default :   printf("Formatieren unterbrechen mit kill -9 %d\n",kind1);
                 exit(2);
    }
  }
 return 0;
}