Changeset 3836
- Timestamp:
- 03/01/06 19:39:07 (2 years ago)
- Files:
-
- trackerd/trunk/trackerd/main.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trackerd/trunk/trackerd/main.c
r3835 r3836 75 75 int main(int argc, const char **argv) { 76 76 wi_pool_t *pool; 77 wi_array_t *array; 78 wi_string_t *options, *string; 77 wi_string_t *string; 79 78 int ch, facility; 80 79 wi_boolean_t no_chroot, test_config; … … 82 81 /* init libwired */ 83 82 wi_initialize(); 83 wi_load(argc, argv); 84 84 85 pool = wi_pool_init(wi_pool_alloc()); 85 86 wi_log_startup = true; 86 87 wi_log_syslog = true; 87 88 wi_log_syslog_facility = LOG_DAEMON; 88 wi_log_name = wi_string_init_with_cstring(wi_string_alloc(), "trackerd");89 89 90 90 /* init core systems */ … … 206 206 /* dump command line */ 207 207 if(wi_log_level >= WI_LOG_DEBUG) { 208 array = wi_array_init_with_argv(wi_array_alloc(), argc, argv); 209 options = wi_array_components_joined_by_string(array, WI_STR(" ")); 210 wi_log_debug(WI_STR("Started as %@"), options); 211 wi_release(array); 208 wi_log_debug(WI_STR("Started as %@ %@"), 209 wi_process_path(wi_process()), 210 wi_array_components_joined_by_string(wi_process_arguments(wi_process()), WI_STR(" "))); 212 211 } 213 212 … … 330 329 update = interval; 331 330 332 #ifdef HAVE_SETPROCTITLE 333 setproctitle("%u %s", wt_current_servers, wt_current_servers == 1 ? "server" : "servers"); 334 #endif 331 wi_process_set_name(wi_process(), wi_string_with_format(WI_STR("%u %@"), 332 wt_current_servers, 333 wt_current_servers == 1 334 ? WI_STR("server") 335 : WI_STR("servers"))); 335 336 336 337 if(wt_settings.status) {
