bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PPP: uu_lock()


From: Daniel E Baumann
Subject: PPP: uu_lock()
Date: Sun, 6 May 2001 03:24:28 -0500
User-agent: Mutt/1.3.17i

I disabled the gateway setting code in PPP in hopes of getting it to dial in and
this is what I got (from /var/log/syslog):

y  6 00:39:51 localhost ppp[7087]: Phase: Using interface: tun0
May  6 00:39:51 localhost ppp[7087]: Phase: deflink: Created in closed state
May  6 00:39:51 localhost ppp[7087]: tun0: Command: default: set device 
/dev/com0
May  6 00:39:51 localhost ppp[7087]: tun0: Command: default: set speed 38400
May  6 00:39:51 localhost ppp[7087]: tun0: Command: default: set dial ABORT BUSY
ABORT NO\sCARRIER TIMEOUT 5 "" AT            OK-AT-OK ATE1Q0 OK \dATDT\T 
TIMEOUT 40
CONNECT
May  6 00:39:51 localhost ppp[7087]: tun0: Command: default: load ISP
May  6 00:39:51 localhost ppp[7087]: tun0: Command: ISP: set phone 12628276000
May  6 00:39:51 localhost ppp[7087]: tun0: Command: ISP: set login
May  6 00:39:51 localhost ppp[7087]: tun0: Command: ISP: set authname Pbaberd
May  6 00:39:51 localhost ppp[7087]: tun0: Command: ISP: set authkey ********
May  6 00:39:51 localhost ppp[7087]: tun0: Command: ISP: set timeout 120
May  6 00:39:51 localhost ppp[7087]: tun0: Command: ISP: set ifaddr 10.0.0.1/0
10.0.0.2/0 0.0.0.0 0.0.0.0
May  6 00:39:51 localhost ppp[7087]: tun0: Command: ISP: add default HISADDR
May  6 00:39:51 localhost ppp[7087]: tun0: Command: ISP: enable dns
May  6 00:39:51 localhost ppp[7088]: tun0: Phase: PPP Started (background mode).
May  6 00:39:51 localhost ppp[7088]: tun0: Phase: bundle: Establish
May  6 00:39:51 localhost ppp[7088]: tun0: Phase: deflink: closed -> opening
May  6 00:39:51 localhost ppp[7088]: tun0: Phase: deflink: /dev/com0 is in use:
uu_lock: creat error: No such file or directory
May  6 00:39:51 localhost ppp[7088]: tun0: Chat: Failed to open device (attempt 
1 of
1)
May  6 00:39:51 localhost ppp[7088]: tun0: Phase: deflink: opening -> closed
May  6 00:39:51 localhost ppp[7088]: tun0: Phase: bundle: Dead
May  6 00:39:51 localhost ppp[7088]: tun0: Chat: Parent notified of redial
May  6 00:39:51 localhost ppp[7088]: tun0: Phase: PPP Terminated (normal).
May  6 00:39:51 localhost ppp[7088]: tun0: Chat: Parent notified of failure
May  6 00:39:51 localhost ppp[7087]: tun0: Phase: Parent: Child failed (errdead)

The main problem being:

May  6 00:39:51 localhost ppp[7088]: tun0: Phase: deflink: /dev/com0 is in use: 
uu_lock: creat error: No such file or directory

If you follow the code, this is the relevant snippet:

static int
physical_Lock(struct physical *p)
{
        int res;

        if (*p->name.full == '/' && p->type != PHYS_DIRECT &&
                 (res = ID0uu_lock(p->name.base)) != UU_LOCK_OK) {
                if (res == UU_LOCK_INUSE)
                        log_Printf(LogPHASE, "%s: %s is in use\n", 
p->link.name, p->name.full);
                else
                        log_Printf(LogPHASE, "%s: %s is in use: uu_lock: %s\n",
                                                                 p->link.name, 
p->name.full, uu_lockerr(res));
                return 0;
        }
        return 1;
}

I think it is returning UU_LOCK_CREAT_ERR, why would it not be able to create 
the
lock file? I was running it as root.

Dan
-- 
Daniel E Baumann       baumannd@msoe.edu
Web location:          http://www.msoe.edu/~baumannd

And if cynics ridicule freedom, ridicule community...if ``hard nosed 
realists'' say that profit is the only ideal...just ignore them, and use 
copyleft all the same.
      -- RMS



reply via email to

[Prev in Thread] Current Thread [Next in Thread]