mirror of
https://github.com/RGBCube/serenity
synced 2025-07-30 18:47:45 +00:00
Ports: Update oksh's patches to use git patches
This commit is contained in:
parent
bb8febffac
commit
7077ce7779
6 changed files with 93 additions and 2 deletions
41
Ports/oksh/patches/0003-Disable-flock.patch
Normal file
41
Ports/oksh/patches/0003-Disable-flock.patch
Normal file
|
@ -0,0 +1,41 @@
|
|||
From eed1007382d7ce6593ec55512bb21ed69343e9cc Mon Sep 17 00:00:00 2001
|
||||
From: Manuel Palenzuela <manuelpalenzuelamerino@gmail.com>
|
||||
Date: Mon, 5 Apr 2021 22:58:01 +0200
|
||||
Subject: [PATCH 3/5] 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;
|
||||
- }
|
||||
+ }*/
|
||||
}
|
||||
|
||||
/*
|
||||
--
|
||||
2.36.1
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue