LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-10-2012, 11:28 PM   #16
Mark Pettit
Member
 
Registered: Dec 2008
Location: Cape Town, South Africa
Distribution: Slackware 15.0
Posts: 619

Rep: Reputation: 299Reputation: 299Reputation: 299

Quote:
Originally Posted by jdgr View Post
I'm just using the default terminal that comes preinstalled with slackware 13.37. Nothing fancy.

So judging by the rest of this thread, I would assume that on Ubuntu, the terminal doesn't send the HUP signal to all child processes but Slackware does handle this properly, thus killing all children unless specifically divorced/disowned? Does that sound about right?
Very unlikely. The handling of the HUP signal is not dictated by the parent, but by the child. So Ubuntu's terminal program will be as effective (or ineffective) as Slackware's. The child program will decide, usually because of code that the programmer wrote, to act on the parent dieing, or not. Slackware's FireFox is pretty much as released by Mozilla - it's very seldom that the Slackware maintainers go that deep. But of course Ubuntu and Debian are famous (notorious) for doing this, so what happens from that point on is anyone's guess. Even so, I'd be surprised if they modified this sort of behaviour.
 
Old 04-11-2012, 12:21 AM   #17
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by jdgr View Post
Thanks for all the responses, and the nohup and > /dev/null options.

But for an example: I use putty for one of my work programs. It is a telnet based POS and parts system. I start it via the command line like [CODE]putty -load Parts\ Handler & [\CODE] because I have a few different versions I connect to. Now when I do this the program loads the proper session in the background, and I can use the terminal again. But if I close that terminal window, and I just did it again to confirm, my putty window (the child of that terminal) disappears.

I've never had this happen in Ubuntu and it seems weird that it would work differently in Slackware. I understand that certain children may die if the parent is killed, but I would think the terminal would be different since practically everything can be started from the command line. And putty isn't the only program that this happens to, it's just one that everyone here probably knows.
Code:
man screen
Screen is even more useful if you are logging into a remote box somewhere that has screen available on it.
 
Old 04-11-2012, 02:51 AM   #18
chrissi29
LQ Newbie
 
Registered: May 2010
Location: germany
Distribution: slackware current
Posts: 23

Rep: Reputation: 2
Sorry for the dumb question maybe...
But are you simply closing the terminal window, which leads to closing of all child processes
or are you really logging out of it via exit / strg-d?
 
1 members found this post helpful.
Old 04-11-2012, 09:14 AM   #19
jdgr
Member
 
Registered: Feb 2012
Location: Ontario, Canada
Distribution: Fedora 18
Posts: 65

Original Poster
Rep: Reputation: Disabled
chrissi29 may be on to something. I just tried it and if I type exit to close the terminal, it didn't kill the child putty window. But when I click on [X] to close, it killed the second putty window I opened (the child of this new terminal). Interesting, I didn't realize the two commands sent different kill signals to the children, but it looks like this was the answer as to why the children close.
 
  


Reply



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
running a program start script in terminal fenriswoolf Linux - Software 1 04-01-2008 09:25 AM
Running program from terminal with & does nothing, program stops DittoAlex Linux - General 1 10-05-2007 01:35 AM
start new terminal windows to run a new program ufmale Linux - Newbie 5 07-25-2007 09:11 AM
How to start a program in terminal and let it 'detach' neo_in_matrix Linux - Newbie 2 04-12-2005 05:08 AM
terminal program metallica1973 Linux - Networking 1 02-23-2003 10:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:29 AM.

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