From f0bbc1adc545f86776a2ecc51a460599ad4bbc9a Mon Sep 17 00:00:00 2001 From: brian Date: Thu, 28 May 1998 23:15:40 +0000 Subject: o Don't forget to close our transfer socket if we cannot generate the data to transfer. o Transfer uucp lock ownership for the transferred device. o Don't assume we know the correct values of dev_is_modem and mbits after the transfer. --- usr.sbin/ppp/id.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'usr.sbin/ppp/id.c') diff --git a/usr.sbin/ppp/id.c b/usr.sbin/ppp/id.c index 2e4072c..4ac474e 100644 --- a/usr.sbin/ppp/id.c +++ b/usr.sbin/ppp/id.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: id.c,v 1.6.4.10 1998/05/01 19:24:41 brian Exp $ + * $Id: id.c,v 1.8 1998/05/21 21:45:32 brian Exp $ */ #include @@ -170,6 +170,19 @@ ID0uu_lock(const char *basettyname) } int +ID0uu_lock_txfr(const char *basettyname, pid_t newpid) +{ + int ret; + + ID0set0(); + ret = uu_lock_txfr(basettyname, newpid); + log_Printf(LogID0, "%d = uu_lock_txfr(\"%s\", %d)\n", ret, basettyname, + (int)newpid); + ID0setuser(); + return ret; +} + +int ID0uu_unlock(const char *basettyname) { int ret; -- cgit v1.1