Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-06-2008, 12:15 PM   #1
LQ Newbie
Registered: Oct 2008
Posts: 1

Rep: Reputation: 0
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
Old 10-07-2008, 09:13 PM   #2
Registered: Sep 2008
Distribution: CentOS
Posts: 75

Rep: Reputation: 16
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
python thread safety: printing from thread to redirected stdout - safe? BrianK Programming 2 10-11-2010 12:28 PM
Freeze of freeze on first boot compaq v6305nr distro: fedora core 7 schezel2000 Linux - Hardware 0 10-18-2007 11:01 AM
HP nx6110 shutdown freeze when on battery during session jirik Linux - Laptop and Netbook 1 05-20-2006 02:02 PM
Session Disconnect fuldagap Linux - General 0 11-15-2005 11:11 PM
X-Window Freeze when closing X Session smitchel Linux - Software 3 11-12-2001 12:37 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:50 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration