Use pthread_exit() as per recommendation
This commit is contained in:
parent
8960d994ac
commit
e47ae0c416
@ -8,6 +8,7 @@
|
||||
#include <string.h>
|
||||
#include <getopt.h>
|
||||
#include <unistd.h>
|
||||
#include <pthread.h>
|
||||
|
||||
#include <phoned.h>
|
||||
extern struct conf cf;
|
||||
@ -49,5 +50,6 @@ int main(argc, argv)
|
||||
initialize();
|
||||
network();
|
||||
shutd();
|
||||
pthread_exit(NULL);
|
||||
return 0;
|
||||
}
|
||||
|
@ -76,6 +76,7 @@ void *handclient(k)
|
||||
cid_log(rc);
|
||||
}
|
||||
close(sk);
|
||||
pthread_exit(NULL);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user