[comp.windows.x] Should xterm -e ignore SIGHUP?

wolpert@APOLLO.COM (Craig Wolpert) (07/27/89)

The X11R3 xterm ignores SIGHUP when started with "-e".  xterm started
without "-e" handles the SIGHUP correctly (SIG_DFL - default action)
The feature ("xterm -e" ignoring SIGHUP) causes problems during
logout because the xterms started with "-e" do not exit on logout.
Should "xterm -e" ignore SIGHUP?

				Craig

=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=

Craig Wolpert
Apollo Computer		wolpert@apollo.com
(508)256-6600		{attunix,decwrl!decvax,mit-eddie}!apollo!wolpert

jim@EXPO.LCS.MIT.EDU (Jim Fulton) (07/28/89)

	Should "xterm -e" ignore SIGHUP?

Nope.  It's a bug.  Move the signal (SIGHUP, SIG_DFL); before the 
if (command_to_exec) test.