Hi Scsh folks,
I've had problems where my system runs out of processes - everything
on the system, not just Scsh. But only when I'm running Scsh under
emacs. There's two different ways I've been using using Scsh under
emacs (problem arises under both scenarios):
(1) under shell mode
(2) running Scsh as an inferior-process.
If I try and run any executables from an xterm I get "No more
processs". In scsh the following error occurs when I try to run any
unix processes:
Error: 11
"No more processes"
#{Procedure 8115}
1>
This appears to be due to the fact that after a forked process -- as
in scsh's fork function -- tries to exit, it remains as a defunct
process. Take a look at the following transcript:
Scsh 0.3
> (fork (lambda () (exit 0)))
11218
>
I have not yet exited Scsh - I try "ps -ux" and get the following
(amongst other info):
whelan 11218 0.0 0.0 0 0 q5 Z Oct 11 0:00 <defunct>
Once I exit Scsh, the defunct process goes away.
Again, this problem only arises when I'm using Scsh under emacs
(19.27).
The problem occurs when I've had an interactive session in which I do
many run/strings. When the pile of defunct processes (and active
processes) gets large enough this eventually causes the "No more
processes" problem.
Any suggestions?
-Greg
|