--- libaitio/example/bpf.c 2013/06/26 13:33:55 1.1.2.10 +++ libaitio/example/bpf.c 2013/06/26 16:22:12 1.1.2.11 @@ -240,7 +240,7 @@ ShowPkt(void *buffer) } printf("%s===\n", szShow); - pthread_exit(NULL); + return NULL; } // ---------------------- @@ -346,8 +346,7 @@ main(int argc, char **argv) io_GetErrno(), io_GetError()); if (Verbose) { printf("%d) +readed %d bytes\n", i, ret); - pthread_create(&tid, NULL, ShowPkt, buffer); - pthread_join(tid, NULL); + ShowPkt(buffer); } } } else {