[Tinyos-commits] CVS: tinyos-1.x/tools/src/sf sf.c,1.7,1.8
David Gay
idgay at users.sourceforge.net
Mon Dec 13 11:56:03 PST 2004
- Previous message: [Tinyos-commits] CVS: tinyos-1.x/tools/src/sf platform.c, NONE,
1.1 Makefile, 1.1, 1.2 platform.h, 1.1, 1.2 sfsource.h, 1.4, 1.5
- Next message: [Tinyos-commits]
CVS: tinyos-1.x/tos/platform/mica2 SerialId.nc, 1.2, 1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/tinyos/tinyos-1.x/tools/src/sf
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8859
Modified Files:
sf.c
Log Message:
ignore SIGPIPE
Index: sf.c
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/tools/src/sf/sf.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** sf.c 13 Dec 2004 19:43:43 -0000 1.7
--- sf.c 13 Dec 2004 19:56:00 -0000 1.8
***************
*** 9,12 ****
--- 9,13 ----
#include <stdio.h>
#include <string.h>
+ #include <signal.h>
#include "sfsource.h"
***************
*** 266,269 ****
--- 267,273 ----
}
+ if (signal(SIGPIPE, SIG_IGN) == SIG_ERR)
+ fprintf(stderr, "Warning: failed to ignore SIGPIPE.\n");
+
open_serial(argv[2], atoi(argv[3]));
serfd = serial_source_fd(src);
- Previous message: [Tinyos-commits] CVS: tinyos-1.x/tools/src/sf platform.c, NONE,
1.1 Makefile, 1.1, 1.2 platform.h, 1.1, 1.2 sfsource.h, 1.4, 1.5
- Next message: [Tinyos-commits]
CVS: tinyos-1.x/tos/platform/mica2 SerialId.nc, 1.2, 1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Tinyos-commits
mailing list