From owner-freebsd-questions Fri Mar 10 7:45:44 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 956FE37BA06 for ; Fri, 10 Mar 2000 07:45:41 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id JAA05332; Fri, 10 Mar 2000 09:45:26 -0600 (CST) (envelope-from dan) Date: Fri, 10 Mar 2000 09:45:26 -0600 From: Dan Nelson To: Alfred Perlstein Cc: questions@FreeBSD.ORG Subject: Re: 1024 character input limit? (forw) Re: Please help: Buffers Message-ID: <20000310094526.A461@dan.emsphone.com> References: <20000309234722.E14279@fw.wintelcom.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.1.5i In-Reply-To: <20000309234722.E14279@fw.wintelcom.net>; from "Alfred Perlstein" on Thu Mar 9 23:47:22 GMT 2000 X-OS: FreeBSD 4.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Mar 09), Alfred Perlstein said: > There's probably 100 places I'd have to look to figure out where this > limit is, does anyone have an idea? > > basically input is limited to 1024 characters... ... because when you're typing in a terminal in Canonical mode (the default), the kernel has to keep whatever you type in a buffer so you can line-edit it with ^H, ^W, or ^U. That limit is defined by the TTYHOG value in /sys/sys/tty.h. man termios for more info on Canonical mode. Of course, this has nothing to do with Matthew's original problem, as squid doesn't open up PTYs to talk to its subprocesses. > > > > > > Matthew's script doesn't need a browser. you can run it from the command > > > line in UNIX. The same program run under Linux doesn't exhibit this > > > problem. Yes it does, at 4096 characters. Again, only when you're typing in a tty. If a program creates a pipe, forks, and execs another program using the pipe to communicate (like what squid does), there are no TTYs involved, and the line-editing character limit doesn't apply. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message