Path: utzoo!attcan!uunet!tektronix!orca!tekecs!frip!andrew From: andrew@frip.gwd.tek.com (Andrew Klossner) Newsgroups: comp.unix.wizards Subject: bug in "portable way to do nap()" Message-ID: <10450@tekecs.TEK.COM> Date: 10 Oct 88 19:39:55 GMT References: <543@mpx1.UUCP> <12665@ncoast.UUCP> Sender: andrew@tekecs.TEK.COM Organization: Tektronix, Wilsonville, Oregon Lines: 10 > int baudrate[] = { > 50, This is followed by code which subscripts baudrate[tty.c_cflags&CBAUD]. There's an off-by-one here. baudrate[1], not baudrate[0], should be 50, and the baudrate array should contain 16, not 15, elements. See the termio(7) man page for details. -=- Andrew Klossner (uunet!tektronix!tekecs!frip!andrew) [UUCP] (andrew%frip.gwd.tek.com@relay.cs.net) [ARPA]