summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/id.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1998-05-28 23:15:40 +0000
committerbrian <brian@FreeBSD.org>1998-05-28 23:15:40 +0000
commitf0bbc1adc545f86776a2ecc51a460599ad4bbc9a (patch)
tree3c7ad7f867e874884f178d616f0c4e2ec2306802 /usr.sbin/ppp/id.c
parent88e95865abce6c3049d5a704fdc844d6a83d53e4 (diff)
downloadFreeBSD-src-f0bbc1adc545f86776a2ecc51a460599ad4bbc9a.zip
FreeBSD-src-f0bbc1adc545f86776a2ecc51a460599ad4bbc9a.tar.gz
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.
Diffstat (limited to 'usr.sbin/ppp/id.c')
-rw-r--r--usr.sbin/ppp/id.c15
1 files changed, 14 insertions, 1 deletions
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 <sys/types.h>
@@ -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;
OpenPOWER on IntegriCloud