Bug 68094

Summary: konsole returns - kdecore (KProcess): WARNING: Cannot chown /dev/ttypd
Product: [Applications] konsole Reporter: James Satterfield <james>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: FreeBSD   
Latest Commit: Version Fixed In:

Description James Satterfield 2003-11-13 07:28:31 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 3.3.3 
OS:          FreeBSD

5.1-CURRENT FreeBSD 5.1-CURRENT #0: Sun Nov  9 16:36:01 PST 2003
kdelibs from 11/7
kgrantpty.c Revision 1.12

Intermittent konsole crashes with:
kdecore (KProcess): WARNING: Cannot chown /dev/ttypc
kdecore (KProcess): Reason Operation not permitted
/usr/local/kde/bin/kgrantpty: cannot determine pty name.


Reproduce:
Start konsole from terminal. In konsole (if it starts) start new shell. It may take several attempts.
I've found that after login, every other attempt to start konsole fails. As time progresses, failures deminish (Took 20 new shells to reproduce the error last time I tried).
Comment 1 groot 2003-12-31 15:16:12 UTC
See also bug 42986 - when kgrantpty / konsole_grantpty is setuid root, you get this behavior (each time, an additional pty is chowned, so as you work longer, more and more ptys become yours and the problem of having to try twice fades). If it's not setuid root, then you get the old "can be eavesdropped" behavior.
Comment 2 Oswald Buddenhagen 2004-01-13 19:23:39 UTC
fixed for kde 3.2