cosmopolitan icon indicating copy to clipboard operation
cosmopolitan copied to clipboard

Daemonized redbean doesn't exit when run from ssh

Open mierenhoop opened this issue 1 year ago • 2 comments

When starting a daemonized redbean server on a remote machine using ssh:

$ ssh machine /redbean.com -d

The ssh session does not return.

This was fixed when adding the -t flag to ssh:

$ ssh -t machine /redbean.com -d

It does return like expected.

I doubt "allocating a pseudo-terminal" should be required for starting the daemon.

mierenhoop avatar Mar 01 '24 20:03 mierenhoop

I noticed the same thing and came up with exactly the same solution. I used to work (likely with v2.0 or so), but then stopped working about 9m ago. I haven't had a chance to look at what may be happening, so would be interesting to find out what's happening.

pkulchenko avatar Mar 02 '24 04:03 pkulchenko

I've found that it last worked at 9c7b81ee0fc6489f0db2f11cd7c239b1c41cbb1b and stopped working (started freezing) at 965516e3139e947be30cec38d3b129c0b7b7743b.

mierenhoop avatar Mar 06 '24 22:03 mierenhoop