fInitSemaphore
sem_id fInitSemaphore;
fInitSemaphore(-1),
if (fInitSemaphore >= 0)
delete_sem(fInitSemaphore);
fInitSemaphore = create_sem(0, "FUSE init sem");
if (fInitSemaphore < 0)
RETURN_ERROR(fInitSemaphore);
while (acquire_sem(fInitSemaphore) == B_INTERRUPTED) {
fInitSemaphore = -1;
delete_sem(fInitSemaphore);
delete_sem(fInitSemaphore);
if (fInitStatus > 0 && fInitSemaphore >= 0) {
delete_sem(fInitSemaphore);
sem_id fInitSemaphore;
fInitSemaphore = create_sem(1, "init semaphore");
if (fInitSemaphore < 0)
fInitStatus = fInitSemaphore;
fInitSemaphore = create_sem(1, "init semaphore");
if (fInitSemaphore < 0)
fInitStatus = fInitSemaphore;
if (fInitSemaphore >= 0)
delete_sem(fInitSemaphore);
if (fInitSemaphore >= 0) {
error = acquire_sem(fInitSemaphore);
delete_sem(fInitSemaphore);
fInitSemaphore = -1;