Changeset 666

Show
Ignore:
Timestamp:
03/13/07 16:18:41 (2 years ago)
Author:
alo
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cherokee/trunk/ChangeLog

    r665 r666  
     12007-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 
    172007-03-12  Alvaro Lopez Ortega  <alvaro@alobbs.com> 
    28 
  • cherokee/trunk/cherokee/thread.c

    r639 r666  
    10221022 
    10231023                        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); 
    10251030                        } 
    10261031                         
  • cherokee/trunk/configure.in

    r645 r666  
    9292          libdl= 
    9393          ;; 
    94         *-*-*netbsd*) 
    95                 thread_ldflags="-pthread"        
    96           libdl= 
    97           ;; 
    98         *-*-*freebsd*|*-*-*openbsd*|*-*-*dragonfly*) 
    99                 thread_ldflags="-pthread" 
    100           libdl="-pthread" 
    101           ;; 
    10294        *-*-linux*) 
    103                 thread_ldflags="-lpthread" 
    104           libdl="-ldl" 
    105           ;; 
    106         *-*-hpux*) 
    107                 thread_ldflags="-lpthread" 
    10895          libdl="-ldl" 
    10996          ;; 
     
    113100          libdl="-ldl" 
    114101          ;; 
     102        *-*-hpux*) 
     103          libdl="-ldl" 
     104          ;; 
     105        *-*-*freebsd*|*-*-*openbsd*|*-*-*netbsd*|*-*-*dragonfly*) 
     106          libdl= 
     107          ;; 
    115108        *-*-darwin*) 
    116109                so_suffix=dylib 
    117110                mod_suffix=so 
    118                 thread_ldflags="-pthread" 
    119111          libdl="-ldl" 
    120112          ;; 
     
    426418 
    427419 
     420 
     421 
     422 
    428423dnl 
    429424dnl Pthread 
     
    438433        ACX_PTHREAD( , AC_MSG_ERROR([POSIX threads missing])) 
    439434 
    440         dnl I'm not sure about it.. 
    441         dnl but I've had problems compiling in some GNU/Linux machines 
    442         dnl because ACX_PTHREAD didn't add -lpthread 
    443         if test "x$PTHREAD_LIBS" =  "x" 
    444         then 
    445 #          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         fi 
    451  
    452435        if test "$acx_pthread_ok" = "yes"; then 
    453  
    454436                AC_MSG_CHECKING([for pthread_rwlock_t support]) 
    455437                have_pthread_rwlock_t=yes 
     
    483465                        AC_DEFINE(HAVE_PTHREAD_RWLOCK_T, 1, [Define if your pthread library includes pthread_rwlock_t]) 
    484466                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 
    485472                 
    486473                with_pthread="yes" 
    487474        fi 
    488 fi 
    489  
    490 AC_CHECK_FUNC(pthread_attr_setschedpolicy, have_pthread_attr_setschedpolicy=yes) 
    491 if test x"$have_pthread_attr_setschedpolicy" = "xyes"; then 
    492   AC_DEFINE(HAVE_PTHREAD_SETSCHEDPOLICY, 1, [Pthread support pthread_attr_setschedpolicy]) 
    493475fi 
    494476