summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2000-02-04 08:40:50 +0000
committerRoland McGrath <roland@gnu.org>2000-02-04 08:40:50 +0000
commit85a447dfc9b8790d42c4bdea1309d1f5b9429ffc (patch)
tree0cef0e7400b679d8b0a7d42ac229f39f54f17210
parentdb9a26cbd125ec106e040ea6084911f9bc0c0198 (diff)
2000-02-04 Roland McGrath <roland@baalperazim.frob.com>
* options.c (parse_opt): Take global_lock while applying changes. * main.c (main): Unlock global_lock before calling argp_parse.
-rw-r--r--pfinet/main.c7
1 files changed, 4 insertions, 3 deletions
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 ();