The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
kills command shwe UNIX for Dummies Questions & Answers 1 05-13-2008 08:03 AM
Linux kills windows :( woofie Linux 6 05-16-2005 05:19 PM
Where can I find a list of exit codes? (Exit code 64) jkuchar747 UNIX for Dummies Questions & Answers 3 12-07-2004 03:08 PM
PHP function kills my code? l008com Shell Programming and Scripting 10 12-15-2003 09:02 PM
exit from telnet kills orbix process edgarm UNIX for Dummies Questions & Answers 1 11-27-2000 11:18 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 06-09-2005
Registered User
 

Join Date: Jun 2005
Posts: 1
application exit kills shells

Hi all,
I start my application from a shell command-line.
When I exit my application, it kills the shell that its returning too.
Worse yet, since I have init respawning the shell all those subsequent
shells get killed automatically...so I get output like the following
(the >> is the prompt for my application)....

>>quit
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

And this just continues endlessly.

Anyone have any idea why this would happen. I was thinking maybe
some signal control or terminal control or something that I do in the app.
but I can't think of anything?

Thanks,

- MikeQ
Reply With Quote
Forum Sponsor
  #2  
Old 06-09-2005
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,269
Are you trapping SIGCHLD in the parent shell?

You might want to post some of the script.
Reply With Quote
  #3  
Old 06-10-2005
Just Ice's Avatar
Lights on, brain off.
 

Join Date: Mar 2005
Location: in front of my computer
Posts: 629
how does your application start? does it do an "exec /my/app" as one of the first lines in the script? if it does, exiting off the application will terminate your login shell and will also terminate every shell that init respawns if there is a condition that script checks for but cannot find ....
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:55 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0