I'm on macOS 10.13.6.
I often need to set a long process running from the terminal, and then lock my Macbook for a while, and I want the process to be still running when the screen is locked. However, the process just hangs as long as the screen is locked. I can confirm that the Macbook is not asleep, and I've checked the box that says "prevent computer from sleeping automatically when the display is off" in "Energy Saver". How do I keep the process running (not hang) when the computer is locked (but not asleep)?