Use pthread_exit() as per recommendation

This commit is contained in:
dcp1990 2005-06-09 21:10:19 +00:00
parent 8960d994ac
commit e47ae0c416
2 changed files with 3 additions and 0 deletions

View file

@ -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;
} }

View file

@ -76,6 +76,7 @@ void *handclient(k)
cid_log(rc); cid_log(rc);
} }
close(sk); close(sk);
pthread_exit(NULL);
return 0; return 0;
} }