LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Session disconnect causes thread freeze (https://www.linuxquestions.org/questions/linux-newbie-8/session-disconnect-causes-thread-freeze-674588/)

brodsky99 10-06-2008 11:15 AM

Session disconnect causes thread freeze
 
A most bizarre problem:

I am running Debian Linux on a small computer within an autonomous vehicle. The program which controls that vehicle (running on said computer) is multithreaded. Said program is started via an ssh login into said computer, using wireless ethernet. Once program has started, the connection remains until vehicle moves out of range, at which point the connection is effectively severed.

The problem is that eventually one or more threads (including the main thread) of the program freeze. But not all threads: some are unaffected. When the connection is re-established, all threads renew running.

I am using the "screen" program to keep the remote session alive after disconnect, but this does not prevent the above.

Any ideas? I can provide more details.

Thank you
- Pete Brodsky

centos82 10-07-2008 08:13 PM

I'm not sure I fully understand your question. You might try running said program using the nohup command though. This will prevent a hangup signal from being sent to any commands started by a parent process (ssh session) when the parent process dies.

Syntax is:
nohup said program


All times are GMT -5. The time now is 03:32 AM.