Process run with nohup gets killed on client_loop: send disconnect: Broken pipe
1
vote
1
answer
37
views
I have observed the following and want to understand why:
First, I run a Node server that listens on a port on a remote server using:
nohup my-app &
Next there are two cases:
1. I logout of the remote server using exit
. I call this graceful logout
2. I do not logout gracefully but instead have a forceful logout due to my local machine going to sleep after extended period of inactivity or something like that. In this case I see a message printed on the screen that says client_loop: send disconnect: Broken pipe
When I log back into the machine, in case 1 the process is still running but in case 2 it is terminated. Why?
And to further add a twist, case 1 and case 2 behave same on Mac but not in Windows (using WSL2). I am very curious to understand what's going on here and why do Windows (WSL2) and Mac behave differently.
Asked by morpheus
(135 rep)
Mar 8, 2025, 12:38 AM
Last activity: Mar 8, 2025, 06:58 PM
Last activity: Mar 8, 2025, 06:58 PM