Просмотр исходного кода

Merge trunk revision 2719:
r2719 | sdake | 2010-03-22 15:07:01 -0700 (Mon, 22 Mar 2010) | 3 lines

Fix lockup that occurs rarely with pthread_join() is called in atexit()
handler.



git-svn-id: http://svn.fedorahosted.org/svn/corosync/branches/flatiron@2720 fd59a12c-fef9-0310-b244-a6a79926bd2f

Steven Dake 16 лет назад
Родитель
Сommit
6211e6c82a
2 измененных файлов с 1 добавлено и 1 удалено
  1. 0 1
      exec/logsys.c
  2. 1 0
      exec/util.c

+ 0 - 1
exec/logsys.c

@@ -1076,7 +1076,6 @@ int _logsys_wthread_create (void)
 	if (((logsys_loggers[LOGSYS_MAX_SUBSYS_COUNT].mode & LOGSYS_MODE_FORK) == 0) &&
 		((logsys_loggers[LOGSYS_MAX_SUBSYS_COUNT].mode & LOGSYS_MODE_THREADED) != 0)) {
 		wthread_create();
-		atexit (logsys_atexit);
 	}
 	return (0);
 }

+ 1 - 0
exec/util.c

@@ -94,6 +94,7 @@ void _corosync_exit_error (
 		"with status %d at %s:%u.\n", err, file, line);
 	logsys_fork_completed ();
 	logsys_flush ();
+	logsys_atexit ();
 	exit (err);
 }