|
Date: Wed, 9 Sep 2015 00:47:33 -0400 From: Rich Felker <dalias@...c.org> To: musl@...ts.openwall.com Subject: Re: process doesn't terminate when closing streams from another thread On Sun, Sep 06, 2015 at 03:44:45PM +0100, Nuno Gonçalves wrote: > I'm having problems when closing streams from another thread. > > The following code: > > static void *func(void *arg) > { > fclose(stdout); > fprintf(stderr,"Thread about to exit\n"); > return 0; > } > > int main(int argc, char **argv) > { > int thread_id; > pthread_create(&thread_id,NULL,&func,NULL); > pthread_join(thread_id,NULL); > fprintf(stderr,"Process about to terminate\n"); > return 0; > } > > Prints: > > root@...nWrt:/tmp# ./myapp_withmusl > Thread about to exit > Process about to terminate > > But never returns! I have to send it a SIGINT. > > This happens on target-mips_34kc_musl-1.1.11. > > Thanks, Thanks for the report. This should now be fixed (in git master). Let me know if you still have problems. Rich
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.