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

View File

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