Changeset 666
- Timestamp:
- 03/13/07 16:18:41 (2 years ago)
- Files:
-
- cherokee/trunk/ChangeLog (modified) (1 diff)
- cherokee/trunk/cherokee/thread.c (modified) (1 diff)
- cherokee/trunk/configure.in (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cherokee/trunk/ChangeLog
r665 r666 1 2007-03-13 Alvaro Lopez Ortega <alvaro@alobbs.com> 2 3 * cherokee/thread.c (process_active_connections): Tries to report 4 the handler name when a ret code is found after calling the 5 handler init method. 6 1 7 2007-03-12 Alvaro Lopez Ortega <alvaro@alobbs.com> 2 8 cherokee/trunk/cherokee/thread.c
r639 r666 1022 1022 1023 1023 default: 1024 RET_UNKNOWN(ret); 1024 if ((MODULE(conn->handler)->info) && 1025 (MODULE(conn->handler)->info->name)) 1026 PRINT_ERROR ("Unknown ret %d from handler %s\n", ret, 1027 MODULE(conn->handler)->info->name); 1028 else 1029 RET_UNKNOWN(ret); 1025 1030 } 1026 1031 cherokee/trunk/configure.in
r645 r666 92 92 libdl= 93 93 ;; 94 *-*-*netbsd*)95 thread_ldflags="-pthread"96 libdl=97 ;;98 *-*-*freebsd*|*-*-*openbsd*|*-*-*dragonfly*)99 thread_ldflags="-pthread"100 libdl="-pthread"101 ;;102 94 *-*-linux*) 103 thread_ldflags="-lpthread"104 libdl="-ldl"105 ;;106 *-*-hpux*)107 thread_ldflags="-lpthread"108 95 libdl="-ldl" 109 96 ;; … … 113 100 libdl="-ldl" 114 101 ;; 102 *-*-hpux*) 103 libdl="-ldl" 104 ;; 105 *-*-*freebsd*|*-*-*openbsd*|*-*-*netbsd*|*-*-*dragonfly*) 106 libdl= 107 ;; 115 108 *-*-darwin*) 116 109 so_suffix=dylib 117 110 mod_suffix=so 118 thread_ldflags="-pthread"119 111 libdl="-ldl" 120 112 ;; … … 426 418 427 419 420 421 422 428 423 dnl 429 424 dnl Pthread … … 438 433 ACX_PTHREAD( , AC_MSG_ERROR([POSIX threads missing])) 439 434 440 dnl I'm not sure about it..441 dnl but I've had problems compiling in some GNU/Linux machines442 dnl because ACX_PTHREAD didn't add -lpthread443 if test "x$PTHREAD_LIBS" = "x"444 then445 # AC_CHECK_LIB(pthread, pthread_create,446 # [PTHREAD_LIBS="-lpthread"447 # AC_SUBST(PTHREAD_LIBS)])448 PTHREAD_LIBS="$thread_ldflags"449 AC_SUBST(PTHREAD_LIBS)450 fi451 452 435 if test "$acx_pthread_ok" = "yes"; then 453 454 436 AC_MSG_CHECKING([for pthread_rwlock_t support]) 455 437 have_pthread_rwlock_t=yes … … 483 465 AC_DEFINE(HAVE_PTHREAD_RWLOCK_T, 1, [Define if your pthread library includes pthread_rwlock_t]) 484 466 fi 467 468 AC_CHECK_FUNC(pthread_attr_setschedpolicy, have_pthread_attr_setschedpolicy=yes) 469 if test x"$have_pthread_attr_setschedpolicy" = "xyes"; then 470 AC_DEFINE(HAVE_PTHREAD_SETSCHEDPOLICY, 1, [Pthread support pthread_attr_setschedpolicy]) 471 fi 485 472 486 473 with_pthread="yes" 487 474 fi 488 fi489 490 AC_CHECK_FUNC(pthread_attr_setschedpolicy, have_pthread_attr_setschedpolicy=yes)491 if test x"$have_pthread_attr_setschedpolicy" = "xyes"; then492 AC_DEFINE(HAVE_PTHREAD_SETSCHEDPOLICY, 1, [Pthread support pthread_attr_setschedpolicy])493 475 fi 494 476