Jan Vroonhof <vroonhof(a)math.ethz.ch> writes in xemacs-beta(a)xemacs.org:
 Glynn Clements <glynn(a)sensei.co.uk> writes:
> Using `gnuclient -nw <filename>' kills XEmacs, but only when started
> from the WM. If it is started from an xterm or the console, it works
> fine. 
Why should we care?  When I tried this I got (with olvwm on Linux
linked with libc6 and libgpm):
gnuclient: Not connected to a tty
When I removed the `-nw', I got a new frame.  Looks good to me.  I
would more suspect a WM bug.  Colin, could you send in maximal ps
output (and including a full ls of /proc/<pid>) of the result of
executing `sleep 10000' in the same fashion?
Here's what you should see if you have a properly functioning Window
Manager.
steve    13922  0.4  0.4   856   272  ?  S    03:04   0:00 sleep 10000
                                      ^
<steve comment>
No control terminal.
</steve comment>
$ ls -Rl /proc/13922 
total 0
-r--r--r--   1 steve    xemacs          0 Aug 12 03:04 cmdline
lrwx------   1 steve    xemacs         64 Aug 12 03:04 cwd -> [0812]:188417
-r--------   1 steve    xemacs          0 Aug 12 03:04 environ
lrwx------   1 steve    xemacs         64 Aug 12 03:04 exe -> [0802]:243894
dr-x------   1 steve    xemacs          0 Aug 12 03:04 fd
pr--r--r--   1 steve    xemacs          0 Aug 12 03:04 maps
-rw-------   1 steve    xemacs          0 Aug 12 03:04 mem
lrwx------   1 steve    xemacs         64 Aug 12 03:04 root -> [0802]:2
-r--r--r--   1 steve    xemacs          0 Aug 12 03:04 stat
-r--r--r--   1 steve    xemacs          0 Aug 12 03:04 statm
-r--r--r--   1 steve    xemacs          0 Aug 12 03:04 status
/proc/13922/fd:
total 0
lr-x------   1 steve    xemacs         64 Aug 12 03:04 0 -> [0802]:16389
l-wx------   1 steve    xemacs         64 Aug 12 03:04 1 -> [0812]:188662
l-wx------   1 steve    xemacs         64 Aug 12 03:04 2 -> [0812]:188662
lrwx------   1 steve    xemacs         64 Aug 12 03:04 5 -> [0000]:6464
[802 is /dev/sda2 (/), 812 is /dev/sdb2 (/home)]
# /usr/sbin/debugfs /dev/sda2
debugfs:  ncheck 16389
Inode   Pathname
16389   /dev/null
debugfs:  ^D
# /usr/sbin/debugfs /dev/sdb2
debugfs:  ncheck 188662
Inode   Pathname
188662  /steve/.xsession-errors.altair.xemacs.org:0
debugfs:  ^D
# 
 Which OS... Linux probably? (judging from the libs)
 (Could you please recreate using an XEmacs with "-g"? (even nicer
 would be if libgpm.so and/or glibc were also "-g" compiled). 
Unless I'm missing something, I wouldn't sweat this Jan.  tty programs
started from an X Window manager are supposed to lose.