Hacker News new | past | comments | ask | show | jobs | submit login

I’m not sure you can. Both the Open() and Read() calls will block. You can select() on a pipe but not on open. I haven’t checked to see if you can select on a non blocking fd though. This is what the go wrappers do behind the scenes.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: