From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Milan Gardian" To: "'Tristan Savatier'" , Subject: RE: pthread_exit bug ? Date: Thu, 02 Sep 1999 03:35:00 -0000 Message-id: <000301bef52e$f59e5e10$440b10ac@leibinger.freinet.de> References: <37CE487D.FD66CE11@mpegtv.com> X-SW-Source: 1999/msg00073.html [snip] > My program creates several threads. At termination, > each thread (except the main thread) terminates by calling > pthread_exit, then the main thread terminates by > calling pthread_exit (at this point, all my threads > are terminated, therefore the process should disapear). (This note does not try to diminish the meaning of the reported bug) Q: Is there a reason to use pthread_exit from the main thread? A special functionality prehaps? Specifically, I would like to know if there's some difference between these two code snips: (a) int main(void) { //Do some threading stuff... return (24); } (b) void main(void) { //Do some threading stuff... pthread_exit(24); } >From the rather ideological reasons :) I prefer the (a) version, but will gladly learn if there's a point in the (b) version. Looking forward to anyone answering; Yours sincerely, Milan G.