Changeset 283:49d314e9a883 for uwsgi.c

Show
Ignore:
Timestamp:
03/11/10 10:04:21 (5 months ago)
Author:
roberto@…
Branch:
default
Message:

UWSGI_VERSION --version

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • uwsgi.c

    r275 r283  
    607607                {"proxy-max-connections", required_argument, 0, LONG_ARGS_PROXY_MAX_CONNECTIONS}, 
    608608                {"wsgi-file", required_argument, 0, LONG_ARGS_WSGI_FILE}, 
     609                {"version", no_argument, 0, LONG_ARGS_VERSION}, 
    609610                {0, 0, 0, 0} 
    610611        }; 
     
    685686#endif 
    686687                if (uwsgi.test_module == NULL) { 
    687                         fprintf (stderr, "*** Starting uWSGI (%dbit) on [%.*s] ***\n", (int) (sizeof (void *)) * 8, 24, ctime ((const time_t *) &uwsgi.start_tv.tv_sec)); 
     688                        fprintf (stderr, "*** Starting uWSGI %s (%dbit) on [%.*s] ***\n", UWSGI_VERSION, (int) (sizeof (void *)) * 8, 24, ctime ((const time_t *) &uwsgi.start_tv.tv_sec)); 
    688689                } 
    689690#ifndef UNBIT 
    690691        } 
    691692        else { 
    692                 fprintf (stderr, "*** Starting uWSGI (CGI mode) (%dbit) on [%.*s] ***\n", (int) (sizeof (void *)) * 8, 24, ctime ((const time_t *) &uwsgi.start_tv.tv_sec)); 
     693                fprintf (stderr, "*** Starting uWSGI %s (CGI mode) (%dbit) on [%.*s] ***\n", UWSGI_VERSION, (int) (sizeof (void *)) * 8, 24, ctime ((const time_t *) &uwsgi.start_tv.tv_sec)); 
    693694        } 
    694695#endif 
     
    25062507                switch (i) { 
    25072508#ifndef UNBIT 
     2509                case LONG_ARGS_VERSION: 
     2510                        fprintf(stdout,"uWSGI %s\n", UWSGI_VERSION); 
     2511                        exit(0); 
    25082512                case LONG_ARGS_PIDFILE: 
    25092513                        uwsgi.pidfile = optarg;