From dd94a184b8b0baf73174efb1bd16209f710018ac Mon Sep 17 00:00:00 2001 From: Brady McDonough Date: Mon, 27 Jan 2025 22:06:26 -0700 Subject: [PATCH] Removed backchannel socket --- backend/Makefile.in | 2 +- backend/src/spawn_interaction.scm | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/Makefile.in b/backend/Makefile.in index 25a79de..4416e03 100644 --- a/backend/Makefile.in +++ b/backend/Makefile.in @@ -17,4 +17,4 @@ up: deps .backend.lock @nohup $(GUILE) ./main.scm > yacswa-backend.log & export PID=$$! & echo "Server spawned with PID $${PID}"; echo $${PID} > .backend.lock; unset PID down: - @export PID=`cat .backend.lock`; kill -15 $${PID}; rm .backend.lock; rm bc; echo "Server on PID $${PID} down."; unset PID + @export PID=`cat .backend.lock`; kill -15 $${PID}; rm .backend.lock; echo "Server on PID $${PID} down."; unset PID diff --git a/backend/src/spawn_interaction.scm b/backend/src/spawn_interaction.scm index 4335a82..9931eb4 100644 --- a/backend/src/spawn_interaction.scm +++ b/backend/src/spawn_interaction.scm @@ -8,9 +8,10 @@ ;; : ;; Backchannel +#! (define repl-sock (make-unix-domain-server-socket #:path "./bc")) (spawn-server repl-sock) - +!# ;; endpoint helpers (define (err: text) (scm->json-string `((error . ,text))))