Linmodems Mailing list Archives

Google
 
Web archives.linmodems.org

Return-Path: <nelson@crynwr.com>
Mailing-List: contact discuss-help@linmodems.org; run by ezmlm
Delivered-To: mailing list discuss@linmodems.org
Received: (qmail 2750 invoked from network); 22 Apr 2002 00:06:43 -0000
Received: from desk.crynwr.com (65.172.240.34)
  by www.linmodems.org with SMTP; 22 Apr 2002 00:06:43 -0000
Received: (qmail 7162 invoked by uid 501); 22 Apr 2002 00:06:42 -0000
Received: (qmail 15547 invoked from network); 21 Apr 2002 19:07:52 -0000
Received: from www2.mailru.com (80.68.244.5)
  by www.linmodems.org with SMTP; 21 Apr 2002 19:07:52 -0000
Received: from ip-490.dialup.cl.spb.ru (ip-490.dialup.cl.spb.ru [212.46.194.30])
	(authenticated bits=0)
	by www2.mailru.com (8.12.1/8.12.1) with ESMTP id g3LJ6rfo087358
	for <discuss@linmodems.org>; Sun, 21 Apr 2002 23:07:01 +0400 (MSD)
	(envelope-from s001@hotbox.ru)
Date: Sun, 21 Apr 2002 23:07:36 +0400
From: Nikolai Zhubr <s001@hotbox.ru>
Message-ID: <1192349996.20020421230736@hotbox.ru>
To: discuss@linmodems.org
Subject: /bin/login causes modem hangup :(
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi,
First of all, lots of thanks to all people who made it possible to
use soft modems with linux!
I'm not sure if my problem is right on topic, so appologise if rather
not.
I have Lucent1646-based modem and it works almost fine, but I found
one annoying issue: I can't use mgetty + /bin/login to log in by phone
because regular /bin/login causes line drop. Though, if I tell mgetty
to directly start /bin/sh or whatever, the modem remains online ok.
My config: RH 7.1, regular kernel 2.4.2-2, modem driver version 6.00.
My investigation shows that actually line drop occures in the
following place:
*** login.c: -------------------------------------------------------
        if((chown(ttyn, 0, 0) == 0) && (chmod(ttyn, TTY_MODE) == 0)) {
            tcsetattr(0,TCSAFLUSH,&ttt);
            signal(SIGHUP, SIG_IGN); /* so vhangup() wont kill us */
            vhangup();
            signal(SIGHUP, SIG_DFL); // --- The line drops here !!!
        }
             -------------------------------------------------------
I'm not familiar enough with linux to know what it means or how to
deal with it right way.
Any ideas appreciated.
(Please CC me, I'm not subscribed)
-- 
Best regards,
 Nikolai Zhubr


Webmaster: Russell Nelson
Last modified: Wed Jul 30 11:02:43 EDT 2003