Browse Source

Plan 9 from Bell Labs 2007-07-18

David du Colombier 14 years ago
parent
commit
e7c9dc2dbf
4 changed files with 4 additions and 3 deletions
  1. 1 1
      dist/replica/_plan9.db
  2. 1 1
      dist/replica/plan9.db
  3. 1 0
      dist/replica/plan9.log
  4. 1 1
      sys/src/libthread/id.c

+ 1 - 1
dist/replica/_plan9.db

@@ -15769,7 +15769,7 @@ sys/src/libthread/debug.c - 664 sys sys 1014928157 832
 sys/src/libthread/example.c - 664 sys sys 1041440306 1402
 sys/src/libthread/exec.c - 664 sys sys 1014928157 1844
 sys/src/libthread/exit.c - 664 sys sys 1055700450 1318
-sys/src/libthread/id.c - 664 sys sys 1083523466 1840
+sys/src/libthread/id.c - 664 sys sys 1184692175 1834
 sys/src/libthread/iocall.c - 664 sys sys 1140695081 880
 sys/src/libthread/ioclose.c - 664 sys sys 1030537962 242
 sys/src/libthread/iodial.c - 664 sys sys 1030537988 438

+ 1 - 1
dist/replica/plan9.db

@@ -15769,7 +15769,7 @@ sys/src/libthread/debug.c - 664 sys sys 1014928157 832
 sys/src/libthread/example.c - 664 sys sys 1041440306 1402
 sys/src/libthread/exec.c - 664 sys sys 1014928157 1844
 sys/src/libthread/exit.c - 664 sys sys 1055700450 1318
-sys/src/libthread/id.c - 664 sys sys 1083523466 1840
+sys/src/libthread/id.c - 664 sys sys 1184692175 1834
 sys/src/libthread/iocall.c - 664 sys sys 1140695081 880
 sys/src/libthread/ioclose.c - 664 sys sys 1030537962 242
 sys/src/libthread/iodial.c - 664 sys sys 1030537988 438

+ 1 - 0
dist/replica/plan9.log

@@ -49558,3 +49558,4 @@
 1184531404 23 c 386/lib/libsunrpc.a - 664 sys sys 1184529912 353148
 1184531404 24 c 386/lib/libthread.a - 664 sys sys 1184529912 71932
 1184535004 0 d 386/_9pcdisk.gz - 664 sys sys 1039764191 0
+1184693405 0 c sys/src/libthread/id.c - 664 sys sys 1184692175 1834

+ 1 - 1
sys/src/libthread/id.c

@@ -21,7 +21,7 @@ threadpid(int id)
 	if (id == 0)
 		return _threadgetproc()->pid;
 	lock(&_threadpq.lock);
-	for (p = _threadpq.head; p->next; p = p->next){
+	for (p = _threadpq.head; p; p = p->next){
 		lock(&p->lock);
 		for (t = p->threads.head; t; t = t->nextt)
 			if (t->id == id){