mirror of
https://github.com/RGBCube/serenity
synced 2025-05-21 23:35:07 +00:00
71 lines
2.1 KiB
Diff
71 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 ------
|
|
progress.c | 14 --------------
|
|
2 files changed, 20 deletions(-)
|
|
|
|
diff --git a/builtin/log.c b/builtin/log.c
|
|
index db3a88bfe96058679dff1059a6f4769599ee1801..a06d2824bc776e039b90e0bdfeb081835bc7b835 100644
|
|
--- a/builtin/log.c
|
|
+++ b/builtin/log.c
|
|
@@ -442,9 +442,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 UNUSED)
|
|
@@ -476,9 +473,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 f695798acac72bd703dfacc59f83054fd761b619..9e9369eb34dc169d2bcdc2a38285765547a8e3fa 100644
|
|
--- a/progress.c
|
|
+++ b/progress.c
|
|
@@ -69,7 +69,6 @@ static void progress_interval(int signum UNUSED)
|
|
static void set_progress_signal(void)
|
|
{
|
|
struct sigaction sa;
|
|
- struct itimerval v;
|
|
|
|
if (progress_testing)
|
|
return;
|
|
@@ -81,23 +80,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)
|