comparison src/os/unix/ngx_process.h @ 42:41ccba1aba45 NGINX_0_1_21

nginx 0.1.21 *) Bugfix: the ngx_http_stub_status_module showed incorrect statistics if "rtsig" method was used or if several worker process ran on SMP. *) Bugfix: nginx could not be built by the icc compiler on Linux or if the zlib-1.2.x library was building from sources. *) Bugfix: nginx could not be built on NetBSD 2.0.
author Igor Sysoev <http://sysoev.ru>
date Tue, 22 Feb 2005 00:00:00 +0300
parents 46833bd150cb
children b55cbf18157e
comparison
equal deleted inserted replaced
41:4d8e7a81b3a0 42:41ccba1aba45
47 47
48 #define ngx_getpid getpid 48 #define ngx_getpid getpid
49 #define ngx_log_pid ngx_pid 49 #define ngx_log_pid ngx_pid
50 50
51 ngx_pid_t ngx_spawn_process(ngx_cycle_t *cycle, 51 ngx_pid_t ngx_spawn_process(ngx_cycle_t *cycle,
52 ngx_spawn_proc_pt proc, void *data, 52 ngx_spawn_proc_pt proc, void *data, char *name, ngx_int_t respawn);
53 char *name, ngx_int_t respawn);
54 ngx_pid_t ngx_execute(ngx_cycle_t *cycle, ngx_exec_ctx_t *ctx); 53 ngx_pid_t ngx_execute(ngx_cycle_t *cycle, ngx_exec_ctx_t *ctx);
55 void ngx_process_get_status(void); 54 void ngx_process_get_status(void);
56 void ngx_debug_point(void); 55 void ngx_debug_point(void);
57 56
58 57
59 #if (NGX_HAVE_SCHED_YIELD) 58 #if (NGX_HAVE_SCHED_YIELD)
60 #define ngx_sched_yield() sched_yield() 59 #define ngx_sched_yield() sched_yield()
61 #else 60 #else
62 #define ngx_sched_yield() usleep(1) 61 #define ngx_sched_yield() usleep(1)
62 #endif
63
64
65 #if !defined(ngx_setproctitle)
66 ngx_int_t ngx_init_setproctitle(ngx_log_t *log);
67 void ngx_setproctitle(char *title);
63 #endif 68 #endif
64 69
65 70
66 extern int ngx_argc; 71 extern int ngx_argc;
67 extern char **ngx_argv; 72 extern char **ngx_argv;