diff options
author | Ingo Molnar <mingo@kernel.org> | 2016-09-23 07:20:33 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-09-23 07:20:33 +0200 |
commit | 739f1bcd045f473d79358aac94439722d41a2650 (patch) | |
tree | a8cfdff0a9b798acb618ba2b79861af723b217db /tools | |
parent | 89f1c2c59c4aef8e26edbc7db5175e6ffb0e9ec7 (diff) | |
parent | 3bf6215a1b30db7df6083c708caab3fe1a8e8abe (diff) | |
download | linux-739f1bcd045f473d79358aac94439722d41a2650.tar.bz2 |
Merge branch 'perf/urgent' into perf/core, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/iio/iio_generic_buffer.c | 2 | ||||
-rw-r--r-- | tools/lguest/lguest.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/iio/iio_generic_buffer.c b/tools/iio/iio_generic_buffer.c index ae68bf0e2d51..f39c0e9c0d5c 100644 --- a/tools/iio/iio_generic_buffer.c +++ b/tools/iio/iio_generic_buffer.c @@ -456,7 +456,7 @@ int main(int argc, char **argv) if (notrigger) { printf("trigger-less mode selected\n"); - } if (trig_num >= 0) { + } else if (trig_num >= 0) { char *trig_dev_name; ret = asprintf(&trig_dev_name, "%strigger%d", iio_dir, trig_num); if (ret < 0) { diff --git a/tools/lguest/lguest.c b/tools/lguest/lguest.c index d9836c5eb694..11c8d9bc762e 100644 --- a/tools/lguest/lguest.c +++ b/tools/lguest/lguest.c @@ -3266,6 +3266,9 @@ int main(int argc, char *argv[]) } } + /* If we exit via err(), this kills all the threads, restores tty. */ + atexit(cleanup_devices); + /* We always have a console device, and it's always device 1. */ setup_console(); @@ -3369,9 +3372,6 @@ int main(int argc, char *argv[]) /* Ensure that we terminate if a device-servicing child dies. */ signal(SIGCHLD, kill_launcher); - /* If we exit via err(), this kills all the threads, restores tty. */ - atexit(cleanup_devices); - /* If requested, chroot to a directory */ if (chroot_path) { if (chroot(chroot_path) != 0) |