1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-10-26 09:32:33 +00:00
serenity/Ports/oksh/patches/disable_flock.patch
Manuel Palenzuela 8b0f1f816b Ports: Added an oksh port
Currently has some problems such as not killing jobs when (ctrl + c)
and depends on an implementation of sigsuspend.
2021-04-06 08:10:18 +02:00

28 lines
515 B
Diff

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;
- }
+ }*/
}
/*