Thanks to those who replied. The solution came from:
Mic Kaczmarczik <bragrt!uunet!cs.utexas.edu!ut-emx!mic>
uunet!adiron!tro (Tom Olin)
The solution for shelltool, cmdtool, etc. is to wrap it in setsid:
exec /usr/etc/setsid -b $OPENWINHOME/bin/xview/cmdtool
Put this in the .openwin-menu file and all runs fine.
--------------------original-message-------------------------------
Has anyone out there run OpenWindows from an X terminal ?
Here is the problem we are having:
We have an X terminal off a Sparc Station 1++, using xdm.
Everything is running fine, except for XView clients running interactive
shells, such as shelltool, cmdtool, those using XView ttysw.
They start, a frame appears, but no shell starts inside the tool window.
The following error appears in xdm-errors.
% tail -1 /usr/lib/X11/xdm/xdm-errors
ttysw-TIOCSPGRP: Interrupted system call
I also get this error when I start a tool from the root menu.
The problem is caused by the fact that xdm and .xsession are not connected
to a tty, since if I do not start xdm as a daemon, everything works fine.
Note that a tool can be started successfully from within an xterm.
Example: doesn't work:
% ps -ax
PID TT STAT TIME COMMAND
3815 ? IW 0:00 /usr/local/bin/xdm
3820 ? S 0:00 /bin/csh /home/asd/brag/.xsession
3824 ? S 0:00 /usr/openwin/bin/xview/shelltool
3826 ? S 0:02 /usr/openwin/demo/xterm -name xterm - /bin/csh
3827 p0 IW 0:00 -sh (csh)
3828 ? S 0:00 /usr/openwin/bin/olwm
works if:
3222 co IW 0:00 /usr/local/bin/xdm
Has anyone had a similar problem ? How have you gotten OpenWindows to run
from an X terminal ?
-- Anthony=================================================================== Anthony Hunter Systems Consultant The Braegen Group Inc. 66 Slater Street, Suite 2104, Ottawa, Ontario K1P 5H1 (613) 235-9364 Fax (613) 235-3193 ===================================================================
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:05:59 CDT