ratpoison-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RP] Patch to stop shells from being left around


From: Ryan Yeske
Subject: Re: [RP] Patch to stop shells from being left around
Date: Thu Oct 4 22:00:01 2001
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.106

Mike Meyer <address@hidden> writes:

> I noticed that the exec and xterm commands tended to leave an "sh -c"
> hanging around. This seems strange considering the "ugly dance" that
> spawn goes through to prevent zombies, as zombies only take up a
> process slot but the shells use memory that would otherwise be free.
> 
> The attached patch changes that behavior by adding a "&" to the
> command if it doesn't end in one. Since the shell is now doing what
> the first fork in spawn does, that double fork may no longer be
> needed. While the change for that is obvious, the test isn't, so I've
> left it as is.

What is your /bin/sh?  I have never seen this problem, I'm using:

GNU bash, version 2.05.0(1)-release (i386-pc-linux-gnu)
Copyright 2000 Free Software Foundation, Inc.

Ryan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]