This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: icewm and xterm



Bruce Dobrin wrote:
> Hi,  I'm using icewm and I found that if I try to use xterm in the menu or
> toolbar I get the message:

> xterm: Error 14, errno 2: No such file or directory

Xterm generates this message when it is started without a controlling
terminal. The following program demonstrates this:

#include <unistd.h>
int main() {
        if (fork() == 0) {
                setsid();
                execlp("xterm", "xterm", NULL);
        }
}

When run this generates the above error (assuming the X11R6 bin directory is
in your path). If you remove the call to setsid() then xterm starts.

This looks like a bug in the xterm code, as I don't see why it should need
to inherit a controlling tty, but maybe someone can enlighten me here.

Steven

Steven O'Brien            Tel:   +44 (0) 191 206 4544
HP Bluestone Arjuna Labs. Fax:   +44 (0) 191 206 4203
Rotterdam House           Email: steven.obrien@arjuna.com
116 Quayside              Web:   http://www.arjuna.com
Newcastle-Upon-Tyne
NE1 3DY
United Kingdom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]