This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: icewm and xterm
- To: <cygwin-xfree at cygwin dot com>
- Subject: Re: icewm and xterm
- From: "Steven O'Brien" <steven dot obrien at arjuna dot com>
- Date: Tue, 21 Aug 2001 12:05:19 +0100
- Reply-To: <steven dot obrien at arjuna dot com>
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