title: exit function doesn't do what I expected
body: <p>So after I execute my code it won't exit it, so I thought I should add the exit function at the end but it still doesn't exit the program.</p>
  
  <pre><code>  if(bclass)
    {
   if(d==0) printf("Scanez %d.%d.%d.*\n",a,b,c);
   d++;
   if(d&gt;255)
   {
    c++;d=0;
   }
   sprintf(ip,"%d.%d.%d.%d",a,b,c,d);
   if((c==255) &amp;&amp; (d==255))                                                           {
    printf("%s\n",ip);                                                                 printf("[+] Scanarea s-a incheiat cu succes!\n");
    sleep(10);
    kill(pid,2);
    exit(0);
    return 0;
   }
   sc.s_addr=inet_addr(ip);
   dstip=sc.s_addr;
    }
  </code></pre>