Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jart
9 months ago
|
parent
|
context
|
favorite
| on:
Why pipes sometimes get "stuck": buffering
Your libc fork() implementation will lock the stdio mutexes automatically before calling SYS_fork, so the code I wrote in my comment would be fork safe. Your child process would need to spawn the flusher thread again if it's desired though.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: