mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-08 04:50:08 +03:00
39 lines
823 B
Diff
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;
|
|
- }
|
|
+ }*/
|
|
}
|
|
|
|
/*
|