Re: Problems with ksh93 and gnome-terminal
- From: Joe Kelsey <joek mail flyingcroc net>
- To: gnome-list gnome org
- Subject: Re: Problems with ksh93 and gnome-terminal
- Date: Tue Jul 1 11:33:00 2003
Joe Kelsey wrote:
I start gnome with gdm and allow the master gdm process to source all of
my .profile/.kshrc/etc scripts. My gnome-terminal normally runs with
three open windows.
I find that when I exit gnome, gnome-terminal exits but none of the
ksh93 processes exit. They instead get inheirited by init. This means
that after several days, I have *lots* of ksh processes hanging around
doing nothing.
I do not want to use the login shell option to gnome-terminal as that
involves a lot of unnecessary overhead. I think I need gnome-terminal
to send HUP to all subshells when it exits. The ksh processes all start
up in their own process group, so they do not automatically receive any
signals from gnome-terminal.
Does anyone have any insight into gnome-terminal operation, or do I need
to go diving into the source?
I tried an experiment. I clicked on the "close window" button of the
running gnome-terminal and verified that all subshells died. However,
when I click on the "logout" button on my Panel, the gnome-terminal dies
but the subshells continue on (and on, and on, ...)
What does gnome-terminal do differently in these two cases? I tried to
look through the source but I cannot see any place where gnome-terminal
actually signals the subprocesses running in its tabbed windows.
This situation causes a lot of difficulty. For instance, if I run
screen in a window, since exiting gnome-terminal does not signal the
parent ksh, screen never receives the hang-up so the screen never detaches.
/Joe
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]