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