cambridgehackers / connectal

Connectal is a framework for software-driven hardware development.
MIT License
161 stars 46 forks source link

fixing poller seg_faults and deadlock, by KiSuh #103

Closed hanw closed 8 years ago

jankcorn commented 8 years ago

What problem are you trying to solve with this patch?

On Wed, Dec 9, 2015 at 11:40 AM, Han Wang notifications@github.com wrote:


You can view, comment on, or merge this pull request online at:

https://github.com/cambridgehackers/connectal/pull/103 Commit Summary

  • fixing poller seg_faults and deadlock, by KiSuh

File Changes

Patch Links:

— Reply to this email directly or view it on GitHub https://github.com/cambridgehackers/connectal/pull/103.

hanw commented 8 years ago

@kslee

jameyhicks commented 8 years ago

Thanks for contributing a fix.

However, I think we can do something simpler by preallocating the fds array to a configurable size. For example, we only support 16 hardware portals, so we could just preallocate it to that size. Plus 1, for the pipe that is used to wake up poll. I tested this style with DMAC but I guess I wasn't confident enough to push it to connectal.