Bug#42986: [Konsole-devel] Bug#42986: dup2() in freebsd

Waldo Bastian bastian at kde.org
Wed Sep 4 01:10:47 UTC 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 03 September 2002 05:41 pm, Michael Samuel wrote:
> On Tue, Sep 03, 2002 at 12:46:12PM -0700, Waldo Bastian wrote:
> > > Also, after putting in the printf() on the dup2() call, I noticed that
> > > sometimes when closing the pty, the pty master file descriptor is
> > > invalidated before chownpty is called, causing the pty ownership not to
> > > be restored.  This is reproducible when closing konsole via the close
> > > button, or doing a ctrl-d on the last open terminal. (Typing exit from
> > > the shell doesn't trigger it)
> >
> > Does this patch help?
>
> It doesn't apply to konsole in kde 3.0.3.  I might download kde 3.1
> later if I get time.

Oh.. hm.. the idea is that you put everything but the first and last line of 
donePty() in a seperate function and call that from both donePty and the 
TEPty destructor.

But 3.0.3 had some other problems in this area as well, so it could be that 
your problem goes away already by simply upgrading to KDE 3.1(beta)

Cheers,
Waldo
- -- 
bastian at kde.org  |   SuSE Labs KDE Developer  |  bastian at suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9dV2XN4pvrENfboIRAiysAJ4uhwMM6m7cU8VDrOWdsmh+qTSaPQCaAqJ7
8Z38FXtwM5vMjMWqdMyVhnc=
=LSSy
-----END PGP SIGNATURE-----




More information about the konsole-devel mailing list