From owner-freebsd-current@FreeBSD.ORG Wed May 27 09:58:03 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CEA939A0 for ; Wed, 27 May 2015 09:58:03 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: from mail-yk0-f182.google.com (mail-yk0-f182.google.com [209.85.160.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 97CC374C for ; Wed, 27 May 2015 09:58:03 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: by yken206 with SMTP id n206so1293618yke.2 for ; Wed, 27 May 2015 02:57:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=knSF7pnZhedSnD9KVMkcjQyVCt5pb4fpApJS9ZdeiWk=; b=StJZ+Eeh3fX5T8jrN/kJitxVwb49gxgzY6t6/Ch26RCsNS0cs8ItuNTaRbLhDanHur s7wTppEvuOxdgeEtaYuin/I0WfZO1iQv/vSpwKVnEyqwy4+yp3rKPdrWuOle4fdqf+Nf ZjfBKRqnGLqpaTNMzRB0YPf1YqL99abJrzSi6ByNgPsHBFiEWRNPCotMmEY6/Zkei6NI krc3CvtEHFR9EjrPmOK4ehyCi7OeEh/dGfv5yU+G7SkjUa9Io6PSz9V7s4ZGs89lvI9M 2mkYgPq6YS0DlBZKTc/+icJg61SXHjWlKGyvhBgz4ARZypvB17a273AMSCN+wDvowxeU bO8g== X-Gm-Message-State: ALoCoQkh28zNqOI9BU51/Nh2bjbZYo8rkpCMlT2ip+AjyZJfRiMaLXBrug6h7kr078J38yAecTP8 MIME-Version: 1.0 X-Received: by 10.170.189.77 with SMTP id g74mr5072829yke.4.1432720676165; Wed, 27 May 2015 02:57:56 -0700 (PDT) Received: by 10.129.113.212 with HTTP; Wed, 27 May 2015 02:57:56 -0700 (PDT) X-Originating-IP: [84.27.222.46] In-Reply-To: <20150527060113.GA2166@c720-r276659> References: <20150527060113.GA2166@c720-r276659> Date: Wed, 27 May 2015 11:57:56 +0200 Message-ID: Subject: Re: after login through serial line, open(2) on /dev/tty hangs From: Ed Schouten To: Matthias Apitz , FreeBSD Current Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 May 2015 09:58:03 -0000 2015-05-27 8:01 GMT+02:00 Matthias Apitz : > The VT102 is connected through an USB-serial adapter and getty spawns > nicely login: to /dev/cuaU0. /dev/cua* should be used to 'call out' on a TTY. They're not intended to run gettys on. Please /dev/ttyU0 instead. :-) I suspect that opening /dev/tty blocks, for the reason that the terminal you use doesn't provide any modem status lines. /dev/cua* 'works' in your case, because those device nodes ignore modem status. You can disable checking for this by using "3wire.9600" instead of "std.9600" in /etc/ttys. See gettytab(5) for more details. -- Ed Schouten