Removed forking
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user