From e9debdd4abc016afe6c86a4a1a37594afbbf283d Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Sun, 5 Jun 2011 21:37:46 -0300 Subject: [PATCH] tools/atrf-gpio/atusb.c (gpio): _exit after USB error, to avoid futile cleanup --- tools/atrf-gpio/atusb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/atrf-gpio/atusb.c b/tools/atrf-gpio/atusb.c index e8f0eff..e30db9f 100644 --- a/tools/atrf-gpio/atusb.c +++ b/tools/atrf-gpio/atusb.c @@ -66,11 +66,11 @@ static uint8_t gpio(struct atrf_dsc *dsc, if (res < 0) { dump_port(port-1, *data, *dir, mask); fprintf(stderr, "ATUSB_GPIO: %s\n", usb_strerror()); - exit(1); + _exit(1); } if (res != 3) { fprintf(stderr, "ATUSB_GPIO: expected 3 bytes, got %d\n", res); - exit(1); + _exit(1); } *data = buf[1]; *dir = buf[2];