]> andersk Git - moira.git/commitdiff
init the sequence number counter to the PID, not 0
authormar <mar>
Mon, 11 Sep 1989 14:15:49 +0000 (14:15 +0000)
committermar <mar>
Mon, 11 Sep 1989 14:15:49 +0000 (14:15 +0000)
clients/userreg/reg_stubs.c

index 99daca2beaf62c7696a4d894975d28d97dff2568..d64636a424700869145ff93c857b5fae64052be6 100644 (file)
@@ -26,6 +26,7 @@ static char *rcsid_reg_stubs_c = "$Header$";
 #include <strings.h>
 
 static int reg_sock = -1;
+static int seq_no = 0;
 extern errno;
 #define UNKNOWN_HOST -1
 #define UNKNOWN_SERVICE -2
@@ -39,6 +40,8 @@ ureg_init()
     initialize_ureg_error_table();
     initialize_sms_error_table();
     
+    seq_no = getpid();
+
     hp = gethostbyname("sms.mit.edu");
     if (hp == NULL) return UNKNOWN_HOST;
 
@@ -60,8 +63,6 @@ ureg_init()
     return 0;
 }
 
-static int seq_no = 0;
 int
 verify_user(first, last, idnumber, hashidnumber, login)
     char *first, *last, *idnumber, *hashidnumber, *login;
This page took 0.320735 seconds and 5 git commands to generate.