--------------------- PatchSet 1380 Date: 2001/01/24 16:40:01 Author: adri Branch: sfs Tag: (none) Log: call sched_yield() to let the thread loop have time to create so we don't end up being able to schedule something *before* thread_loop() is created. Ugly, but darius will fix better later. Members: src/fs/sfs/sfs_interface.c:1.1.2.2->1.1.2.3 Index: squid/src/fs/sfs/sfs_interface.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/fs/sfs/Attic/sfs_interface.c,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -u -r1.1.2.2 -r1.1.2.3 --- squid/src/fs/sfs/sfs_interface.c 24 Jan 2001 16:06:38 -0000 1.1.2.2 +++ squid/src/fs/sfs/sfs_interface.c 24 Jan 2001 16:40:01 -0000 1.1.2.3 @@ -322,6 +322,7 @@ pthread_mutex_init(&(_sfs_mounted[i].openfiles_lock), NULL); _sfs_mounted[i].accepting_requests = 1; pthread_create(&(_sfs_mounted[i].thread_id), NULL, (void *)&sfs_thread_loop, &(_sfs_mounted[i])); + sched_yield(); /* Allow the sfs_thread_loop to be created .. */ /* Return the sfsid */ return i; }