Removed forking

This commit is contained in:
Rayne C
2018-11-13 00:26:11 -05:00
parent 84e4fbbbd3
commit e0d5e453a6

View File

@@ -67,8 +67,8 @@ int main(int argc, char *argv[])
unsigned port = PORT; unsigned port = PORT;
int code = 0; int code = 0;
if (fork()) //if (fork())
exit(1); // exit(1);
promisc = PROMISC; promisc = PROMISC;
@@ -180,7 +180,7 @@ void sigint(int signum){
//shut it down! //shut it down!
free(sifreq); free(sifreq);
close(sockfd); close(sockfd);
exit(1); //exit(1);
} }
//send a reply //send a reply