|
From: Keishi S. <kei...@te...> - 2006-09-03 23:25:12
|
> > Hi.
> ...
> > Can this leak report be safely suppressed?
>
> I guess yes.
This leak report is still seen in Valgrind-3.2.0.
Is this going to be fixed in the future release?
>
> But besides that your programm has a severe bug. I wonder that it does not
> crash. This is a corrected main:
>
> int main()
> {
> pthread_t tid;
>
> if (0 == pthread_create(&tid, NULL, thread1, 0))
> pthread_join(tid, 0);
>
> return 0;
> }
Could you tell me what the bug is?
I cannot think of anything wrong with my code.
"gcc -g -o test_thread test_thread.c -Wall -lpthrad" doesn't
show any warnings.
Thanks for your time.
Keishi
|