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

Are you trapping SIGCHLD in the parent shell?

You might want to post some of the script.

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 ....