alda-lang / alda

A music programming language for musicians. :notes:
https://alda.io
Eclipse Public License 2.0
5.61k stars 288 forks source link

Exiting Alda REPL in "server only" mode kills all player processes #417

Open daveyarwood opened 2 years ago

daveyarwood commented 2 years ago

🐞 Bug report 🐞

Description

Player processes are supposed to outlive the execution of the Alda client, and they generally do, except, for some reason, in the case of running an Alda REPL in "server only" mode.

Steps to Reproduce

  1. In a separate terminal, monitor the state of the player processes by running watch alda ps.
  2. Start from a clean state by running alda shutdown to shut down all current player processes.
  3. Run alda repl -s to start a REPL server.
  4. Interrupt the process.

Expected Behavior

Actual Behavior

All of the processes die and disappear from the alda ps output.

Environment

Operating system and version: Ubuntu 20.04

Alda version:

$ alda version
alda 2.2.1
$ alda-player info
alda-player 2.2.1
log path: /home/dave/.cache/alda/logs

Health check:

$ alda doctor
(all passing)