2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-24 11:08:45 +00:00

48 Commits

Author SHA1 Message Date
Mark Andrews
26cf4737b3 1288. [port] Openserver: the value FD_SETSIZE depends on whether
<sys/param.h> is included or not.  Be consistant.
2002-05-10 06:41:55 +00:00
Andreas Gustafsson
1f1d36a87b Check return values or cast them to (void), as required by the coding
standards; add exceptions to the coding standards for cases where this is
not desirable
2001-11-30 01:59:49 +00:00
Andreas Gustafsson
91cd0f93ad sizeof style 2001-11-27 01:56:32 +00:00
Brian Wellington
a873540eb6 When in singlethreaded mode, don't drain the event queue before exiting
isc_app_run().  The events will be delivered when the taskmgr is destroyed.
This will allow, for example, dnssec-signzone to be aborted with ^C.
I think this works, and the system tests pass, but it might break something.
2001-11-14 22:11:58 +00:00
Mark Andrews
4b87939256 strerror() -> isc__strerror() [RT #1689] 2001-08-31 05:57:58 +00:00
Andreas Gustafsson
e76d4c91bf coding style 2001-07-09 21:06:30 +00:00
Brian Wellington
48565891e8 784. [bug] nsupdate and other programs would not quit properly
if some signals were blocked by the caller. [RT #1081]
2001-03-20 21:45:20 +00:00
Brian Wellington
dde4382b7f fix comment 2001-03-19 22:44:52 +00:00
Brian Wellington
2f02f32f04 exit(1), not exit(-1) 2001-03-14 06:31:17 +00:00
Bob Halley
5c7d67e3e6 include <stdlib.h> to get prototype for exit() 2001-01-17 19:48:45 +00:00
Brian Wellington
64dcb08113 If the app is blocked and a shutdown signal arrives, just exit(). 2001-01-17 00:48:54 +00:00
Brian Wellington
499b34cea0 copyright update 2001-01-09 22:01:04 +00:00
David Lawrence
801dceea23 Revert my last change. It was stupid, which I if I had been thinking clearly
I would have seen *before* I commited anything.  So, include isc/thread.h,
isc/mutex.h and isc/condition.h even if ISC_PLATFORM_USETHREADS is not defined.

(What caused me to bother with this at all was a problem that I resolved
a few days ago by fixing configure ... though now that I think about it,
that probably means there is some other latent problem with inconsistent
definitions that could maybe be handled better.  I'll look into it more
later, AFTER vacation.)
2000-12-26 21:45:08 +00:00
David Lawrence
bdcae3560b Only include isc/thread.h, isc/mutex.h and isc/condition.h if
ISC_PLATFORM_USETHREADS is defined.
2000-12-26 21:12:25 +00:00
David Lawrence
9cd6d409b7 first pass at using isc_msgcat_get for message strings in libisc 2000-12-06 00:30:32 +00:00
Andreas Gustafsson
25303900d1 missing semicolon 2000-11-29 01:51:54 +00:00
Andreas Gustafsson
1d90a73d6d Make reloads work again after condition variable hack; added comments 2000-11-29 01:50:49 +00:00
Andreas Gustafsson
8e7ce54bef Make omapi clients work on single-threaded systems by
means of a gross hack involving recursive invocation of the
event loop. [RT #505]
2000-11-29 01:27:09 +00:00
Brian Wellington
0d89afffb2 Make sure #else and #endif for ISC_PLATFORM_USETHREADS are marked as such. 2000-09-28 21:31:08 +00:00
Brian Wellington
1b32bc7da1 417. [func] Add isc_app_block() and isc_app_unblock(), which
allow an application to handle signals while
                        blocking.
2000-09-01 21:31:54 +00:00
Brian Wellington
5a842a6fc3 The non-threaded version does a better job avoiding starvation. 2000-08-30 23:47:16 +00:00
Brian Wellington
aa3f41bafc signals were broken in the non-threaded version 2000-08-30 01:43:59 +00:00
Brian Wellington
ae8b7e02a8 Non threaded isc_app_* - basically an event loop that calls into the
task, timer, and socket modules.
2000-08-30 00:58:28 +00:00
Brian Wellington
a44038277a MOre calls to DESTROYLOCK 2000-08-26 01:31:56 +00:00
Brian Wellington
960d37edc3 Setting event->ev_sender to a bogus non-null value is no longer necessary. 2000-08-25 18:58:35 +00:00
David Lawrence
40f53fa8d9 Trailing whitespace trimmed. Perhaps running "perl util/spacewhack.pl in your
own CVS tree will help minimize CVS conflicts.  Maybe not.
Blame Graff for getting me to trim all trailing whitespace.
2000-08-01 01:33:37 +00:00
David Lawrence
15a4474541 word wrap copyright notice at column 70 2000-07-27 09:55:03 +00:00
Brian Wellington
a6f31a3fd0 Only install default handlers for SIGTERM and SIGWAIT if we haven't installed
other handlers already.
2000-07-12 01:46:57 +00:00
Brian Wellington
838f13fbdc Set default signal handlers for SIGINT and SIGTERM (SIGHUP already had one).
This doesn't appear to have an effect on any platform, but it seems like a
good idea.
2000-07-11 19:18:05 +00:00
Michael Graff
2e0e781ba4 use the correct function name in debugging statements 2000-06-29 07:40:58 +00:00
Andreas Gustafsson
33e482fa3e edited comment, no functional change 2000-06-27 21:04:12 +00:00
Michael Sawyer
d8afbf2f30 Force SIGHUP to be in state SIG_DFL when starting, since Solaris would break
that, if run from under cron.
2000-06-27 18:49:14 +00:00
David Lawrence
9c3531d72a add RCS id string 2000-06-22 22:00:42 +00:00
David Lawrence
e8336c458c use HAVE_UNIXWARE_SIGWAIT 2000-05-18 22:39:24 +00:00
David Lawrence
1a69a1a78c Megacommit of dozens of files.
Cleanup of redundant/useless header file inclusion.

ISC style lint, primarily for function declarations and standalone
comments -- ie, those that appear on a line without any code, which
should be written as follows:
   /*
    * This is a comment.
    */
2000-05-08 14:38:29 +00:00
David Lawrence
eefea43215 132. [cleanup] <isc/app.h> does not need <isc/task.h>, but does
need <isc/eventclass.h>.
2000-04-28 21:08:52 +00:00
Michael Graff
e44487bfc2 convert sender, arg, action, etc. to ev_sender, ev_arg, ev_action, etc. 2000-04-17 19:22:44 +00:00
Bob Halley
0e58c0998d don't catch SIGQUIT 2000-03-18 01:29:48 +00:00
Bob Halley
ca41b452ed update copyrights 2000-02-03 23:08:31 +00:00
Bob Halley
03dd96d177 allow normal signal handlers for most signals to execute 2000-01-25 03:33:55 +00:00
Bob Halley
97f1a75cf0 reload support 2000-01-22 01:39:35 +00:00
Michael Graff
440be4c866 move util.h to <isc/util.h> 1999-12-16 22:24:22 +00:00
Bob Halley
bed86971bf add isc_app_onrun 1999-07-14 02:03:44 +00:00
Bob Halley
1e0134b61e sigwait() apparently blocks SIGABRT on linux, causing the main thread
to hang around instead of exiting if a child thread calls abort().  We now
listen for SIGABRT.
1999-07-13 02:22:11 +00:00
Bob Halley
dd324bd791 always ignore sigpipe 1999-05-12 22:54:46 +00:00
Bob Halley
a829555ed7 linux threads support 1999-05-12 22:35:40 +00:00
Bob Halley
6050eb5ab4 do not wait for SIGABRT 1999-05-12 17:37:38 +00:00
Bob Halley
96f55bdc73 add app 1999-05-12 09:44:35 +00:00