On Sun, 13 Aug 2000, you wrote:
>On Sun, 13 Aug 2000, you wrote:
>> [/* 41 vars */]) = -1 EPERM (Operation not permitted)
>>
>> I think, from here, it fails.
>>
>>
>> Chris, or David, or another KDE coder :-), can you investigate?
>
>hrmmm this is odd, though I could be reading this wrong(reading an strace is
>about as fun as throwing salt in your eyes : p )
>
>875   execve("/usr/local/bin/konsole_grantpty",
>["konsole_grantpty","--grant"], [/* 44 vars */]) = -1 ENOENT (No such file
> or directory)
>875   execve("/bin/konsole_grantpty", ["konsole_grantpty", "--grant"], [/*
> 44 vars */])
> = -1 ENOENT (No such file or directory)
>875   execve("/usr/bin/konsole_grantpty", ["konsole_grantpty", "--grant"],
>[/* 44 vars */]) = 0
>
>So it seems to find it and everyyyyything appears to be going ok.
>
>then...........
>
>875   write(2, "konsole_grantpty not installed r"..., 41) = 41
>875   _exit(1)                          = ?
>873   <... wait4 resumed> [WIFEXITED(s) && WEXITSTATUS(s) == 1], 0, NULL) =
>875
>873   --- SIGCHLD (Child exited) ---
>
>well, it dies a few lines below that.

Seeing the code from the end of strace isn't easy :-)

    if ((pid = fork()) == -1)
    {
        kdError(900) << k_lineinfo << "fork(): " << perror << "\n";
        return -1;
    }
 
    if (pid)
    {
        // Parent: wait for child
        int ret;
        waitpid(pid, &ret, 0);
        if (WIFEXITED(ret) && !WEXITSTATUS(ret))
            return 0;
        kdError(900) << k_lineinfo << "konsole_grantpty returned with error: "
                     << WEXITSTATUS(ret) << "\n";
        return -1;
    } else
    {
        // Child: exec konsole_grantpty
        if (ptyfd != pty_fileno && dup2(ptyfd, pty_fileno) < 0)
            _exit(1);
        execlp("konsole_grantpty", "konsole_grantpty", "--grant", NULL);
        kdError(900) << k_lineinfo << "exec(): " << perror << "\n";
        _exit(1);
    }

So the fact that the child exits is ok... The error message isn't though...

>So this is what I'm getting over here.
>Hrmmmmm an idea, maybe kde2 in it's current form(cvs-ware) in the cooker
>should be compiled with debugging symbols ?

What does "konsole_grantpty --grant" say for you ?

I get 
konsole_grantpty: cannot determine the name of device. 

.... which is ttyname(3)....

-- 
David FAURE, [EMAIL PROTECTED], [EMAIL PROTECTED]
http://home.clara.net/faure/, http://www.konqueror.org/
KDE, Making The Future of Computing Available Today
See http://www.kde.org/kde1-and-kde2.html for how to set up KDE 2

Reply via email to