~spuul/nginx/trunk

« back to all changes in this revision

Viewing changes to debian/modules/nginx-lua/src/ngx_http_lua_exception.c

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2014-02-15 03:05:42 UTC
  • mfrom: (4.3.10 sid)
  • Revision ID: package-import@ubuntu.com-20140215030542-71ubtowl24vf7nfn
Tags: 1.4.5-1ubuntu1
* Resynchronise with Debian (LP: #1280511).  Remaining changes:
  - debian/patches/ubuntu-branding.patch:
    + Add Ubuntu branding to server_tokens.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
ngx_http_lua_atpanic(lua_State *L)
32
32
{
33
33
    u_char                  *s = NULL;
34
 
    size_t                   len;
 
34
    size_t                   len = 0;
35
35
 
36
36
    if (lua_type(L, -1) == LUA_TSTRING) {
37
37
        s = (u_char *) lua_tolstring(L, -1, &len);
43
43
    }
44
44
 
45
45
    ngx_log_stderr(0, "lua atpanic: Lua VM crashed, reason: %*s", len, s);
 
46
    ngx_quit = 1;
46
47
 
47
48
    /*  restore nginx execution */
48
49
    NGX_LUA_EXCEPTION_THROW(1);
49
50
 
50
51
    /* impossible to reach here */
51
 
    return 0;
52
52
}
53
53
 
54
54
/* vi:set ft=c ts=4 sw=4 et fdm=marker: */