scsh-users
[Top] [All Lists]

scsh defunct processes

To: scsh-bugs@martigny.ai.mit.edu
Subject: scsh defunct processes
From: whelan@LUNG.LEARNING.CS.CMU.EDU
Date: Mon, 30 Oct 95 21:20:12 EST
Sender: whelan@LUNG.LEARNING.CS.CMU.EDU
Source-info: Sender is really whelan@LUNG.LEARNING.CS.CMU.EDU
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) (happens to be on a Sparc5, SunOS 4.1.3).

The problem has occurred 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

<Prev in Thread] Current Thread [Next in Thread>