bug-bash
[Top][All Lists]
Advanced

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

Re: Controlling terminal race condition


From: Paul Jarc
Subject: Re: Controlling terminal race condition
Date: Fri, 01 Jul 2005 15:40:04 -0400
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.4 (gnu/linux)

Jeff Miller <miller@argus-systems.com> wrote:
> It is possible on our test Solaris 8 system that the original
> calling bash shell will set the controlling process of the terminal
> to the pid that it originally forked to after the new process had
> been created. In this case is not the new bash process. It happens
> to do this after the new bash has done it's write but before it has
> done it's read, this new process still assumes it is still the
> controlling process.

Chet, could the foreground process group be set by the forked child
itself, before the exec, instead of by the parent?  That would at
least eliminate the race condition so the results would be
predictable, and I think it would prevent the problem in this case.


paul




reply via email to

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