mirror of
https://github.com/RGBCube/serenity
synced 2025-06-24 22:32:07 +00:00
72 lines
2.1 KiB
Diff
72 lines
2.1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Federico Guerinoni <41150432+guerinoni@users.noreply.github.com>
|
|
Date: Fri, 16 Apr 2021 17:38:54 +0200
|
|
Subject: [PATCH] Remove some unimplemented function calls
|
|
|
|
i.e. f(un)lockfile stubs and setitimer.
|
|
---
|
|
builtin/log.c | 6 ------
|
|
git-compat-util.h | 8 --------
|
|
progress.c | 14 --------------
|
|
3 files changed, 28 deletions(-)
|
|
|
|
diff --git a/builtin/log.c b/builtin/log.c
|
|
index 89447a50838562795bb80172db8102ff7a42e91b..3552e1807860b30eb18366487e5476346290bcea 100644
|
|
--- a/builtin/log.c
|
|
+++ b/builtin/log.c
|
|
@@ -430,9 +430,6 @@ static void log_show_early(struct rev_info *revs, struct commit_list *list)
|
|
* trigger every second even if we're blocked on a
|
|
* reader!
|
|
*/
|
|
- early_output_timer.it_value.tv_sec = 0;
|
|
- early_output_timer.it_value.tv_usec = 500000;
|
|
- setitimer(ITIMER_REAL, &early_output_timer, NULL);
|
|
}
|
|
|
|
static void early_output(int signal)
|
|
@@ -464,9 +461,6 @@ static void setup_early_output(void)
|
|
*
|
|
* This is a one-time-only trigger.
|
|
*/
|
|
- early_output_timer.it_value.tv_sec = 0;
|
|
- early_output_timer.it_value.tv_usec = 100000;
|
|
- setitimer(ITIMER_REAL, &early_output_timer, NULL);
|
|
}
|
|
|
|
static void finish_early_output(struct rev_info *rev)
|
|
diff --git a/progress.c b/progress.c
|
|
index 0cdd875d37f166bedbbeb5f0e889046674ed58be..4b7f5b0b5a48b1b895befef12217e5822d118563 100644
|
|
--- a/progress.c
|
|
+++ b/progress.c
|
|
@@ -67,7 +67,6 @@ static void progress_interval(int signum)
|
|
static void set_progress_signal(void)
|
|
{
|
|
struct sigaction sa;
|
|
- struct itimerval v;
|
|
|
|
if (progress_testing)
|
|
return;
|
|
@@ -79,23 +78,10 @@ static void set_progress_signal(void)
|
|
sigemptyset(&sa.sa_mask);
|
|
sa.sa_flags = SA_RESTART;
|
|
sigaction(SIGALRM, &sa, NULL);
|
|
-
|
|
- v.it_interval.tv_sec = 1;
|
|
- v.it_interval.tv_usec = 0;
|
|
- v.it_value = v.it_interval;
|
|
- setitimer(ITIMER_REAL, &v, NULL);
|
|
}
|
|
|
|
static void clear_progress_signal(void)
|
|
{
|
|
- struct itimerval v = {{0,},};
|
|
-
|
|
- if (progress_testing)
|
|
- return;
|
|
-
|
|
- setitimer(ITIMER_REAL, &v, NULL);
|
|
- signal(SIGALRM, SIG_IGN);
|
|
- progress_update = 0;
|
|
}
|
|
|
|
static int is_foreground_fd(int fd)
|