munshkr / spuriOS

SpuriOS ~ the best x86 monolithic kernel you'll ever know (probably not)
GNU General Public License v3.0
1 stars 0 forks source link

Sometimes `fprintf` makes the task sleep, or hangs indefinitely #25

Closed munshkr closed 13 years ago

munshkr commented 13 years ago

fprintf("Hello, I'm pid %u\n", getpid());

Probably something about the number of bytes written/read.

munshkr commented 13 years ago

I made a quick fix, limiting the buffer to 4KB only. So, for now, you can only printf strings with less than 4096 characters (included the content of variables parsed internally by sprintf).

If you need to write bigger strings, use the write syscall directly.