From 85a447dfc9b8790d42c4bdea1309d1f5b9429ffc Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 4 Feb 2000 08:40:50 +0000 Subject: 2000-02-04 Roland McGrath * options.c (parse_opt): Take global_lock while applying changes. * main.c (main): Unlock global_lock before calling argp_parse. --- pfinet/main.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'pfinet') diff --git a/pfinet/main.c b/pfinet/main.c index bd0c44f3..01dc24be 100644 --- a/pfinet/main.c +++ b/pfinet/main.c @@ -206,12 +206,13 @@ main (int argc, After this, we can use `register_netdevice' for new interfaces. */ net_dev_init (); + __mutex_unlock (&global_lock); + /* Parse options. When successful, this configures the interfaces - before returning. (And when not sucessful, it never returns.) */ + before returning; to do so, it will acquire the global_lock. + (And when not sucessful, it never returns.) */ argp_parse (&pfinet_argp, argc, argv, 0,0,0); - __mutex_unlock (&global_lock); - /* Ask init to tell us when the system is going down, so we can try to be friendly to our correspondents on the network. */ arrange_shutdown_notification (); -- cgit v1.2.3