[Fwd: Re: ILISP 5.12 eats "(" over detachtty]

Marco Antoniotti <[email protected]>
Newsgroups gmane.lisp.ilisp.devel
Message-ID <[email protected]>

Appeared on CLL

-------- Original Message --------
Subject: Re: ILISP 5.12 eats "(" over detachtty
Date: 23 Jan 2003 07:58:01 GMT
From: [email protected] (Ng Pheng Siong)
Reply-To: [email protected] (Ng Pheng Siong)
Organization: The Net Memetic Pte Ltd
Newsgroups: comp.lang.lisp
References: <[email protected]>

According to Ng Pheng Siong <[email protected]>:
 > ILISP 5.11 works fine. ILISP 5.12 eats "(", so I get error messages like
 > "unknown ORANDLOAD", which is actually "(or (and (load ..." somewhere 
inside
 > ILISP.

Yes, Ossifer, the bright place ain't the right place...

Turns out it was the interaction of detachtty with FreeBSD's erase2, which
defaults to "(".

So detachtty was eating "(", not ILISP.

When debugging, I was starting up detachtty in my shell, which has the
proper settings, but for the "deployment scenario", the server auto-pilots
under daemontools in a FreeBSD jail, where erase2 is the default "(". For a
while the whole thing appeared nondeterministic. Doh!

Here's a patch to detachtty.c:

--- detachtty.c.org	Thu Jan 23 15:38:35 2003
+++ detachtty.c	Thu Jan 23 15:27:17 2003
@@ -233,6 +233,7 @@
    /* stermios.c_oflag &= ~(ONLCR); */
    /* would also turn off NL to CR/NL mapping on output */
    stermios.c_cc[VERASE]=0177;
+  stermios.c_cc[VERASE2]=0177;
    if (tcsetattr(fd, TCSANOW, &stermios) < 0)
      bail("tcsetattr error");
  }


(Marco please forward this one as well. TIA! ;-)

-- 
Ng Pheng Siong <[email protected]> * http://www.netmemetic.com




-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.