ladybird/Ports/oksh/patches/0003-Disable-flock.patch

39 lines
823 B
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Manuel Palenzuela <manuelpalenzuelamerino@gmail.com>
Date: Mon, 5 Apr 2021 22:58:01 +0200
Subject: [PATCH] Disable flock
Serenity does not support flock.
---
history.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/history.c b/history.c
index 59876da..b03cc7a 100644
--- a/history.c
+++ b/history.c
@@ -23,6 +23,8 @@
#include "sh.h"
+#define SMALL
+
#if !defined(HAVE_STRAVIS) || !defined(HAVE_STRUNVIS)
#include "vis.h"
#else
@@ -636,12 +638,12 @@ init_histvec(void)
static void
history_lock(int operation)
{
- while (flock(fileno(histfh), operation) != 0) {
+ /*while (flock(fileno(histfh), operation) != 0) {
if (errno == EINTR || errno == EAGAIN)
continue;
else
break;
- }
+ }*/
}
/*