Jan Vroonhof writes:
[AAAAARGGHHHH... Yet another I started XEmacs from my WM problem,
it must be the heat wave.]
giacomo boffi >
> 1. let my WM (gwm) start xemacs like this
> xemacs -f gnuserv-start
> 2. exit xemacs
> 3. observe a gnuserv process that eats up to 95% of cpu
Please attach 'strace' to gnuserv to see what it is doing just
before and after XEmacs is exited.
P.S. What happends when you just do 'xemacs' from your WM and then
M-x gnuserv-start.
P.P.S. What happens when you use
'xemacs -f gnuserv-start <somefile >someotherfile 2>&1'
And what happens if you use this script (possibly from an xterm)
#!/usr/bin/perl
close STDOUT;
close STDIN;
close STDERR;
exec "xemacs","-f","gnuserv-start"
ok jan,
i tried hard to do my homework, but you know, the heatwave...
----------------------------------------------------------------------
NB. i renamed my .emacs, so it was never loaded, line numbers in
straces provided by vim
**********
1. gnuserv's strace when starting xemacs -f ... from gwm
1 select(5, [0 3 4], NULL, NULL, NULL <unfinished ...>
2 --- SIGHUP (Hangup) ---
3 --- SIGCONT (Continued) ---
4 <... select resumed> ) = -1 ENOSYS (Function not
implemented)
5 read(0, "", 1) = 0
6 read(0, "", 1) = 0
..... ...
73594 read(0, "", 1) = 0
73595 read(0, <unfinished ...>
73596 +++ killed by SIGKILL +++
**********
2. gnuserv's strace when starting xemacs -f ... from the shell
1 select(5, [0 3 4], NULL, NULL, NULL) = ? ERESTARTNOHAND (To be restarted)
2 --- SIGHUP (Hangup) ---
**********
3. gnuserv's strace when starting xemacs without -f ... from gwm
1 select(5, [0 3 4], NULL, NULL, NULL) = ? ERESTARTNOHAND (To be
restarted)
2 --- SIGHUP (Hangup) ---
3 select(5, [0 3 4], NULL, NULL, NULL) = 1 (in [0])
4 --- SIGHUP (Hangup) ---
5 --- SIGCONT (Continued) ---
6 read(0, "", 1) = 0
7 read(0, "", 1) = 0
8 read(0, "", 1) = 0
..... ...
30323 read(0, "", 1) = 0
30324 read(0, "", 1) = 0
**********
4. from the shell: xemacs -f gnuserv-start < asde.f > pp.f 2>&1
1 select(5, [0 3 4], NULL, NULL, NULL) = ? ERESTARTNOHAND (To be restarted)
2 --- SIGHUP (Hangup) ---
**********
5. the above, from gwm (it doesn't work, as i have a buffer "<", a
buffer
"asde.f, etc)
1 select(5, [0 3 4], NULL, NULL, NULL <unfinished ...>
2 --- SIGHUP (Hangup) ---
3 --- SIGCONT (Continued) ---
4 <... select resumed> ) = -1 ENOSYS (Function not
implemented)
5 read(0, "", 1) = 0
6 read(0, "", 1) = 0
..... ...
17438 read(0, "", 1) = 0
17439 read(0, "", 1) = 0
17440 --- SIGTERM (Terminated) ---
**********
6. the perl script, from the shell
1 select(5, [0 3 4], NULL, NULL, NULL) = ? ERESTARTNOHAND (To be restarted)
2 --- SIGHUP (Hangup) ---
**********
7. the perl script from gwm
1 select(5, [0 3 4], NULL, NULL, NULL) = ? ERESTARTNOHAND (To be restarted)
2 --- SIGHUP (Hangup) ---
3 select(5, [0 3 4], NULL, NULL, NULL) = 1 (in [0])
4 --- SIGHUP (Hangup) ---
5 --- SIGCONT (Continued) ---
6 read(0, "", 1) = 0
7 read(0, "", 1) = 0
..... ...
3022 read(0, "", 1) = 0
3023 read(0, "", 1) = 0
3024 read(0, "", 1) = 0
3025 --- SIGTERM (Terminated) ---