
cherokee at googlecode
Feb 12, 2010, 8:16 AM
Post #8 of 9
(631 views)
Permalink
|
|
Re: Issue 732 in cherokee: cherokee-admin doesn't notice why cherokee failed to gracefully restart
[In reply to]
|
|
Comment #7 on issue 732 by alobbs: cherokee-admin doesn't notice why cherokee failed to gracefully restart http://code.google.com/p/cherokee/issues/detail?id=732 I've just come up with another (kinda hacky) solution: ========== from ctypes import * try: lib = CDLL('libpcre.dylib') except OSError: lib = CDLL('libpcre.so') pcre_compile = lib.pcre_compile pcre_compile.restype = c_void_p pcre_compile.argtypes = [c_char_p, c_int, c_char_p, c_char_p, c_char_p] error_s = "" error_n = "" for regex in ["^example$", "*."]: re = lib.pcre_compile (regex, 0, error_s, error_n, None) print "% 10s - %s" %(regex, ('FAIL','OK')[bool(re)]) ========== -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings _______________________________________________ Cherokee-dev mailing list Cherokee-dev [at] lists http://lists.octality.com/listinfo/cherokee-dev
|