mailing list of musl libc
 help / color / mirror / code / Atom feed
* Possible file stream bug
@ 2012-10-24 19:36 Paul Schutte
  2012-10-24 20:16 ` Paul Schutte
  2012-10-24 20:59 ` Rich Felker
  0 siblings, 2 replies; 11+ messages in thread
From: Paul Schutte @ 2012-10-24 19:36 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 529 bytes --]

Hi

I compiled and linked libwebserver-0.5.3 against musl.

It would just strangely break halfway through a request. After hours of
searching, I found the problem.

I can demonstrate it with the following code:

#include <unistd.h>
#include <stdio.h>

int main() {
    FILE *fstream;

    fclose(stdout);

    fstream=freopen("/dev/tty","w",stdout);

    if (fstream==NULL) {
        fprintf(stderr,"freopen failed\n");
    }

    printf("test this\n");


    return 0;
}

This snippet works fine when using glibc.

Regards
Paul

[-- Attachment #2: Type: text/html, Size: 695 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-10-26 21:57 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-24 19:36 Possible file stream bug Paul Schutte
2012-10-24 20:16 ` Paul Schutte
2012-10-24 20:51   ` Rich Felker
2012-10-24 20:59 ` Rich Felker
2012-10-24 21:22   ` Paul Schutte
2012-10-24 21:25     ` Rich Felker
2012-10-24 21:54       ` Paul Schutte
2012-10-24 21:53         ` Rich Felker
2012-10-26 21:57         ` Rich Felker
2012-10-24 21:41     ` Szabolcs Nagy
2012-10-24 21:52       ` Rich Felker

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).