[Tinyos-commits] CVS: tinyos-1.x/tools/src/sf sfsource.c,1.7,1.8

Matt Welsh mdwelsh at users.sourceforge.net
Wed May 3 08:33:21 PDT 2006


Update of /cvsroot/tinyos/tinyos-1.x/tools/src/sf
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9782

Modified Files:
	sfsource.c 
Log Message:
Slight modification to get sf to work on MacOS

Index: sfsource.c
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/tools/src/sf/sfsource.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** sfsource.c	15 Sep 2005 00:14:23 -0000	1.7
--- sfsource.c	3 May 2006 15:33:19 -0000	1.8
***************
*** 20,24 ****
        int n = read(fd, buffer, count);
  
!       if (n == -1 && errno == EINTR)
  	continue;
        if (n == -1)
--- 20,24 ----
        int n = read(fd, buffer, count);
  
!       if (n == -1 && (errno == EINTR || errno == EAGAIN))
  	continue;
        if (n == -1)



More information about the Tinyos-commits mailing list