If I run an amber app with process_count: 2 I get 3 processes. This is unexpected :sweat_smile:
process_count: 2 in background (ex: using a service)ps aux to see how many app processes are forkedExpected behavior: 2 processes are forked
Actual behavior: 3 processes are forked
Reproduces how often: 100%
amber v0.7.2

Lets pair on this when you have time. Cause I unable to reproduce this.
I think we need a server_end and server_start event listeners so we can kill stuff in the background. What I think is happening is that some processes are not kill properly.
@eliasjpr I added a screenshot, This only happens when I add use process_count: 2,
IMO this is a minor issue. I just wanted to track it :sweat_smile:
@eliasjpr Also if you notice the processes are being killed properly (see PIDs)
Hi. I run into a similar issue and had to use a temporary solution.
Here is my pull request for the Which is the fastest? project: [Crystal] Temporarily fix multi-processing mode of Amber server #1392 just now.
We can now compile amber using the -Dpreview_mt flag to enable multi thread. I have tested this and it works.