~arivigo/minitimer

c0938ab1753b1a2fa44ded106375dc64c177ee14 — Ariadna Vigo 10 months ago 35abb73
minitimer.c: shell will handle stderr
1 files changed, 1 insertions(+), 3 deletions(-)

M minitimer.c
M minitimer.c => minitimer.c +1 -3
@@ 295,10 295,8 @@ exit:
	tcsetattr(STDIN_FILENO, TCSAFLUSH, &oldterm);

	if (run_stat == 1 && timeout_cmd != NULL) {
		if (system(timeout_cmd) < 0) {
			perror("Failed to execute timeout command");
		if (system(timeout_cmd) != 0)
			return 1;
		}
	}

	return 0;