Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alda Processes are not independent of the shell #406

Open
elydpg opened this issue Oct 22, 2021 · 1 comment
Open

Alda Processes are not independent of the shell #406

elydpg opened this issue Oct 22, 2021 · 1 comment

Comments

@elydpg
Copy link
Contributor

elydpg commented Oct 22, 2021

I'm not sure if this is a universal problem or one that only affects Windows cmd and powershell. It seems that alda processes are not independent of the shell anymore, since if alda is doing something such as play a score from a file or open a REPL and I try and close the shell, it doesn't seem to let me right away.

I think the problem is best illustrated in the below recordings:

2021-10-22.00-27-37.mp4

(PowerShell)

2021-10-22.00-31-26.mp4

(Cmd)

Checking the task manager reveals that when I, say, play a score, the player processes are children of the shell:

Screenshot (23)

@daveyarwood
Copy link
Member

I think this is Windows-specific. I noticed something kind of similar when I was setting up the CI build for Windows, in that I had to disable the automatic spawning of player processes in order to get the build not to hang. My hunch is that the alda-player processes were being created as child processes of the terminal process, and the terminal process wasn't exiting because the player processes were still running.

Ideally, the player processes should be independent of the shell. On my Linux machine, I can run alda play -f /path/to/some-long-score.alda, and exit the terminal process, and I can still hear my score playing in the background. I can open a new terminal process and run alda stop to stop the playback.

My knowledge of Windows is lacking, so I would really appreciate any pointers about how to make the experience better here for Windows users!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants