Permalink
Browse files

fix segfault; closes #71

  • Loading branch information...
1 parent e93b1ca commit cb16211d4efe83b609406a9b087f596336d22bda @kr kr committed Sep 25, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 sock-bsd.c
  2. +1 −1 sock-linux.c
View
@@ -72,7 +72,7 @@ sockwant(Socket *s, int rw)
void
sockmain()
{
- int i, r, n = 500;
+ int i, r, n = 1;
int64 e, t = nanoseconds();
struct kevent evs[n];
View
@@ -60,7 +60,7 @@ sockwant(Socket *s, int rw)
void
sockmain()
{
- int i, r, n = 500;
+ int i, r, n = 1;
int64 e, t = nanoseconds();
struct epoll_event evs[n];

0 comments on commit cb16211

Please sign in to comment.