- 13 Jul, 2003 18 commits
-
-
Per Cederqvist authored
(sig_on_signal): Add SA_RESTART if appropriate. (oop_signal_new): Don't just blindly set FD_CLOEXEC and O_NONBLOCK. Read the old settings first. (oop_signal_use_sa_restart): New function.
-
Per Cederqvist authored
(setup_timer): Ditto. (garb_callback): Moved to text-garb.c. (saver_callback): The source argument is actually used. (toploop): Moved the garb timer to text-garb.c. (server_idle): New function.
-
Per Cederqvist authored
(setup_timer): Ditto. (server_idle): New function.
-
Per Cederqvist authored
(server_init): Use oop_signal_new, since I don't trust the way liboop uses siglongjmp to break out of a signal handler. Ignore the signals before registering them with liboop, to get a proper behaviour on shutdown. (main): Adjusted to use the signal adapter.
-
Per Cederqvist authored
(garb_timer_running): Ditto. (garb_text): Added static qualifier. (garb_callback): Moved here from connections.c. Some minor modifications made to make it compiler in its new environment. (start_garb_thread): New function. (stop_garb_thread): New function. (start_garb): Restart the garb "thread".
-
Per Cederqvist authored
(start_garb_thread): New function. (stop_garb_thread): New function.
-
Per Cederqvist authored
-
Per Cederqvist authored
parameters and penalty points/client scheduling. Added test cases for parsing of timeval values. Improved timeval parsing. Improve config file checking.
-
Per Cederqvist authored
(Parameters): Updated the documentation for "timeval" parameters and the parameters relating to penalty points.
-
Per Cederqvist authored
-
Per Cederqvist authored
Round the tv_usec field properly.
-
Per Cederqvist authored
-
Per Cederqvist authored
than max_penalty. (dump_timeval): New static function. (dump_cfg_timevals): New request.
-
Per Cederqvist authored
file.
-
Per Cederqvist authored
-
Per Cederqvist authored
-
Per Cederqvist authored
-
Per Cederqvist authored
still returns EINVAL sometimes.
-
- 12 Jul, 2003 22 commits
-
-
Per Cederqvist authored
-
Per Cederqvist authored
-
Per Cederqvist authored
-
Per Cederqvist authored
-
Per Cederqvist authored
-
Per Cederqvist authored
<sys/time.h> directly.
-
Per Cederqvist authored
files that needs to include either file now does so via this wrapper.
-
Per Cederqvist authored
-
Per Cederqvist authored
Break overly long lines.
-
Per Cederqvist authored
optional suffix such as "hours" appended. Store them as a struct timeval, not as an int, so that the bulk of the code doesn't have to take the unit into account. Use "struct timeval" instead of a number of milliseconds or seconds in several places. This fixes a number of potential and actual overflows. Added utility functions for struct timeval.
-
Per Cederqvist authored
(create_text_add_miscs): Ditto. (do_create_text): Ditto. (add_recipient): Ditto. (add_comment): Ditto. (add_footnote): Ditto.
-
Per Cederqvist authored
-
Per Cederqvist authored
(sync_part): Return a struct timeval instead of a long. Use struct timeval instead of a time_t. Use timeval_remaining() to simplify the code. (init_cache): Use a struct timeval instead of time_t. (cache_sync_all): Adjusted to new API of sync_part().
-
Per Cederqvist authored
(login_old): Ditto. (login): Ditto. (get_static_session_info): Ditto. (get_time): Ditto. (logout): Ditto. Use timeval_diff_sec instead of ldifftime. (who_is_on_dynamic): Use timeval_diff_sec instead of ldifftime. (get_session_info): Ditto. (get_session_info_ident): Ditto.
-
Per Cederqvist authored
timeout", "Sync timeout", "Garb interval", "Sync interval" and "Sync retry interval" from int to timeval, and added appropriate default suffixes to those configuration parameters.
-
Per Cederqvist authored
-
Per Cederqvist authored
(main): Adjusted for the new type of current_time.
-
Per Cederqvist authored
-
Per Cederqvist authored
(do_add_member): Ditto.
-
Per Cederqvist authored
-
Per Cederqvist authored
-
Per Cederqvist authored
(dump_statistics): Ditto. (saver_callback): Ditto. (setup_timer): Replaced the milliseconds argument with a struct timeval argument. (garb_callback): Simplified the code.
-