viced-debug-log-which-thread-package-we-are-20030304
authorHarald Barth <haba@pdc.kth.se>
Tue, 4 Mar 2003 14:49:09 +0000 (14:49 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 4 Mar 2003 14:49:09 +0000 (14:49 +0000)
log "pthreads" or "LWP" started

src/viced/viced.c

index c209c6e..1bdad87 100644 (file)
@@ -1635,6 +1635,7 @@ main(int argc, char * argv[])
     ih_UseLargeCache();
 
 #ifdef AFS_PTHREAD_ENV
+    ViceLog(5, ("Starting pthreads\n"));
     assert(pthread_attr_init(&tattr) == 0);
     assert(pthread_attr_setdetachstate(&tattr, PTHREAD_CREATE_DETACHED) == 0);
 
@@ -1642,6 +1643,7 @@ main(int argc, char * argv[])
     assert(pthread_create(&serverPid, &tattr, (void *)HostCheckLWP, &fiveminutes) == 0);
     assert(pthread_create(&serverPid, &tattr, (void *)FsyncCheckLWP, &fiveminutes) == 0);
 #else /* AFS_PTHREAD_ENV */
+    ViceLog(5, ("Starting LWP\n"));
     assert(LWP_CreateProcess(FiveMinuteCheckLWP, stack*1024, LWP_MAX_PRIORITY - 2,
                             (void *) &fiveminutes, "FiveMinuteChecks", &serverPid) == LWP_SUCCESS);