Bug#42986: [Konsole-devel] Bug#42986: Problem with konsole_grantpty
Waldo Bastian
bastian at kde.org
Fri Aug 30 00:30:11 UTC 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday 29 August 2002 04:45 pm, Michael Samuel wrote:
> I've spent a while tracking down the FreeBSD problem with chownpty, and
> it seems that the problem is with the dup2() failing before spawning
> konsole_grantpty. (When dup2() fails, you're just silently exiting,
> rather than printing and error)
>
> I can't see any reason why this would fail (it's failing and setting
> errno to EBADF), and I even added some printf()s to my kernel code, and
> the _only_ place where EBADF can be reported by the dup2 system call
> isn't being hit.
>
> The file descriptor is definately valid, as I added a fcntl(fd, F_GETFD)
> right before the dup2(), and the fcntl succeeds.
Can it be that the problem is with PTY_FILENO? Does it matter if you add a
close(PTY_FILENO) in front of it?
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
iD8DBQE9bryTN4pvrENfboIRAo1ZAJwL6UEwrKEp7g/4zhx38PKHAMWxfQCcDBgk
rhdNOr5kAO+4zWzjrm5bIEk=
=MdX+
-----END PGP SIGNATURE-----
(Complete bug history is available at http://bugs.kde.org/db/42/42986.html)
More information about the konsole-devel
mailing list