Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Mar 1996 10:51:57 -0800
From:      "Jordan K. Hubbard" <jkh@time.cdrom.com>
To:        "Rodney W. Grimes" <rgrimes@GndRsh.aac.dev.com>
Cc:        paul@netcraft.co.uk, joerg_wunsch@uriah.heep.sax.de, freebsd-current@FreeBSD.ORG, loodvrij@gridpoint.com
Subject:   Re: Patch to talkd 
Message-ID:  <23488.827693517@time.cdrom.com>
In-Reply-To: Your message of "Sun, 24 Mar 1996 10:49:20 PST." <199603241849.KAA27707@GndRsh.aac.dev.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> As a side effect of this patch what happens to a talk request if your
> least idle xterm has mesg n turned on?  Does the talk fall back to
> another xterm, or do you get an error now?

Geeze, UTSL folks! :-)

                        if (*tty == '\0' || best != 0) {
                                if (best == 0)
                                        status = PERMISSION_DENIED;
                                /* no particular tty was requested */
                                (void) strcpy(ftty + sizeof(_PATH_DEV) - 1,
                                    line);
                                if (stat(ftty, &statb) == 0) {
                                        if (!(statb.st_mode & 020))
                                                continue;
                                        if (statb.st_atime > best) {
                                                best = statb.st_atime;
                                                (void) strcpy(tty, line);
                                                status = SUCCESS;
                                                continue;
                                        }
                                }
                        }

Looking at the loop in question, you can see that it tries to pick a
"best" tty now rather than simply settling for the first one that's
applicable.  The checks for applicability, e.g. whether or not the
modes are correct and the tty is openable, remain unchanged.

					Jordan




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?23488.827693517>