From 61906428d4bf562f6e775db08e2ff4acf66717c2 Mon Sep 17 00:00:00 2001 From: "D. Mitch Bailey" Date: Thu, 13 Feb 2025 19:16:51 -0800 Subject: [PATCH] Prevent crash from too many open files. --- Makefile | 3 +++ scripts/compositor.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/Makefile b/Makefile index b1b07abf..7cbd7845 100644 --- a/Makefile +++ b/Makefile @@ -115,6 +115,7 @@ __ship: random seed `$(CARAVEL_ROOT)/scripts/set_user_id.py -report`; \ drc off; \ crashbackups stop; \ + locking disable; \ addpath hexdigits; \ addpath $(MCW_ROOT)/mag; \ addpath $(UPRJ_ROOT)/mag; \ @@ -155,6 +156,7 @@ __truck: random seed `$(CARAVEL_ROOT)/scripts/set_user_id.py -report`; \ drc off; \ crashbackups stop; \ + locking disable; \ addpath hexdigits; \ addpath $(MCW_ROOT)/mag; \ addpath $(UPRJ_ROOT)/mag; \ @@ -193,6 +195,7 @@ __openframe: @echo "\ drc off; \ crashbackups stop; \ + locking disable; \ addpath hexdigits; \ addpath $(UPRJ_ROOT)/mag; \ load openframe_project_wrapper; \ diff --git a/scripts/compositor.py b/scripts/compositor.py index a17d962c..8ec3d44f 100755 --- a/scripts/compositor.py +++ b/scripts/compositor.py @@ -164,6 +164,8 @@ if __name__ == '__main__': with open(user_project_path + '/mag/compose_final.tcl', 'w') as ofile: print('#!/bin/env wish', file=ofile) print('drc off', file=ofile) + print('crashbackups stop', file=ofile) + print('locking disable', file=ofile) # Set the random seed from the project ID print('random seed ' + user_id_decimal, file=ofile)