From 892c0d9e7dc3785db53b21ace154d6856de57591 Mon Sep 17 00:00:00 2001 From: Oliver Hartkopp Date: Fri, 9 Feb 2007 09:53:16 +0000 Subject: [PATCH] Removed possibility to terminate candump with an input from stdin. Therefore it can be used in scripts now, e.g. for CAN-frame bridging: candump can1 -mFFF -v123 -b can3 -s 2 & Use CTRL-C to terminate candump. --- candump.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/candump.c b/candump.c index a622006..c72ff77 100644 --- a/candump.c +++ b/candump.c @@ -97,6 +97,7 @@ static volatile int running = 1; void print_usage(char *prg) { fprintf(stderr, "Usage: %s [can-interfaces]\n", prg); + fprintf(stderr, " (use CTRL-C to terminate %s)\n", prg); fprintf(stderr, "Options: -m (default 0x00000000)\n"); fprintf(stderr, " -v (default 0x00000000)\n"); fprintf(stderr, " -i <0|1> (inv_filter)\n"); @@ -402,7 +403,6 @@ int main(int argc, char **argv) while (running) { FD_ZERO(&rdfs); - FD_SET(0, &rdfs); for (i=0; i