Commit Graph

220 Commits

Author SHA1 Message Date
Jason Volk dbb3c55db5 matrix: Add m::homeserver; preliminary virtual origin networks. 2019-10-01 17:56:01 -07:00
Jason Volk ad195ef8a4 Fix build / Makefile related errors. 2019-09-30 14:23:28 -07:00
Jason Volk 0b0e903dc7 construct: Add matrix unit; move instance out from ircd. 2019-09-30 14:23:28 -07:00
Jason Volk 89e0a7fc82 ircd: Move matrix application related to derived library. 2019-09-27 19:35:26 -07:00
Jason Volk 1d14a2d7c1 construct: Add descriptor for signal handler's use of ios. 2019-09-25 15:00:25 -07:00
Jason Volk 52a6c82a93 construct::console: Use context::DISPATCH flag for faster response. 2019-09-15 19:36:39 -07:00
Jason Volk efadd20ce8 Revert "ircd::fs::aio: Use defer to post the chaser." [skip ci]
This reverts commit 726f131cc2.

Revert "construct: Set asio::io_context concurrency hint to 1."

This reverts commit 0d1b3de7c0.
2019-09-15 19:36:39 -07:00
Jason Volk 34898aaea0 construct: Make interruption during cmd in watch. 2019-09-11 18:29:24 -07:00
Jason Volk b09c0a464a construct: Allow millisecond sleep times for watch command. 2019-09-11 17:47:36 -07:00
Jason Volk 224c67032a modules/console: Show help rather than bad command if possible. 2019-08-20 21:23:18 -07:00
Jason Volk 51adbcfe24 construct: Simplify warning condition; fix warning log message argument. 2019-08-17 22:26:23 -07:00
Jason Volk 125f53872c ircd::fs: Preliminary io_uring infrastructure plumbing. 2019-08-11 01:39:30 -07:00
Jason Volk 400c8ecfcb construct: Consider a SIGINT a quit in runlevels other than RUN. 2019-07-08 06:03:20 -07:00
Jason Volk ea0a1df3a1 configure: Add options for third-party allocator selection/deselection and inclusion. 2019-07-03 18:02:54 -07:00
Jason Volk 88a633efdb construct: Improve usage error message. 2019-06-28 22:15:47 -07:00
Jason Volk 80655da66e Misc fixes for clang. 2019-06-24 01:34:14 -07:00
Jason Volk c692b009a4 Fix -fuse-ld ldflags. 2019-06-24 01:33:41 -07:00
Jason Volk 8c7b265916 construct: Always disable IPv6 by default unless -6 program option is used. 2019-06-22 17:39:25 -07:00
Jason Volk 4c95fc94a5 construct: Fix log message format for header/lib mismatch. 2019-06-19 13:32:40 -07:00
Jason Volk 3d04ed9ad0 configure: Remove the CPPDEFINE for RB_TIME_CONFIGURED. 2019-06-13 15:03:32 -06:00
Jason Volk 2b43a5a92b configure: Add --enable-compact for the smallest possible building and linking. 2019-06-06 05:29:07 -07:00
Jason Volk 5ff021c96b Makefiles: Cleanup linker flags with spaced arguments. 2019-06-05 23:22:05 -07:00
Jason Volk f702520044 ircd: Add infrastructure to handle continuation notification after suspending. 2019-06-05 15:06:16 -07:00
Jason Volk 351f1804c8 Add runtime program option to soften assert behavior. 2019-06-01 02:10:30 -07:00
Jason Volk 1e6f8c6946 Revert "Link with explicit -shared-libgcc to prevent ld.gold causing static fallback."
This reverts commit 3f9fb44475.

Reverted because it breaks debug line numbers in libircd and construct where it is
linked.
2019-05-29 18:18:44 -07:00
Jason Volk f94f519271 ircd: Add conditioned debugtrap() utility in assert suite.
ircd: Fix some assert header conflicts.

construct: Add TRAP special command handler.
2019-05-28 16:55:41 -07:00
Jason Volk 3f9fb44475 Link with explicit -shared-libgcc to prevent ld.gold causing static fallback. 2019-05-27 03:29:06 -07:00
Jason Volk 81ae93ecc1 Re-attempt use of .gdb_index section. 2019-05-17 00:44:00 -07:00
Jason Volk ed11153d27 Allow STB_GNU_UNIQUE for RTLD_DEEPBIND.
modules: Remove cruft; tweak Makefile.
2019-05-16 22:36:19 -07:00
Jason Volk 0d1b3de7c0 construct: Set asio::io_context concurrency hint to 1. 2019-05-13 15:25:37 -07:00
Jason Volk 56b63be2aa construct: Return from main() for future compat. 2019-05-09 16:58:29 -07:00
Jason Volk 1ae664f6a0 construct: Tweak usererrstr formatting; minor cleanup. 2019-05-09 16:58:29 -07:00
Jason Volk abae2c02f5 ircd::net: Fix for 864f50da (kicks can down the road). 2019-05-03 18:13:01 -07:00
Jason Volk 864f50da17 construct: Leak a dynamic io_context instance; temp workaround to s_dns symbol issue. 2019-05-03 15:57:09 -07:00
Jason Volk dd4090e11b construct: Add smoketest. 2019-04-24 02:19:14 -07:00
Jason Volk 7ea6a3b39a construct: Minor cleanup. 2019-04-23 01:51:21 -07:00
Jason Volk ccb2d86cdc construct: Add header/library version startup checks. 2019-04-23 01:30:52 -07:00
Jason Volk bf3a23b8d2 construct/console: Eliminate extra sleep() after output done. 2019-04-19 19:07:12 -07:00
Jason Volk f9025cebb9 ircd: Support read-only and write-avoid modes via conf item / command line. 2019-04-15 11:16:31 -07:00
Jason Volk 0b8725953e construct: Update comment. 2019-04-10 22:32:06 -07:00
Jason Volk daec603205 construct: Improve main function commentary etc. 2019-04-03 15:51:42 -07:00
Jason Volk bc2fdf2b15 construct: Add a -norun program option for debugging and testing. 2019-04-03 15:51:42 -07:00
Jason Volk ee35e71b28 construct: Add program option -no6 to disable ipv6 at startup. 2019-03-25 15:18:06 -07:00
Jason Volk a21e03df27 ircd: Add restart support w/ console cmd. 2019-03-02 14:20:52 -08:00
Jason Volk f0428a26b9 construct: Remove the -configfile po; put io_context on stack; minor cleanup. 2019-03-02 14:20:52 -08:00
Jason Volk 2854ea9a0f Makefiles: Remove --gdb-index here because no -gsplit-dwarf used. 2019-02-25 18:20:48 -08:00
Jason Volk 169abb0676 construct/console: Add a couple more halting options. 2019-02-22 15:40:52 -08:00
Jason Volk 944f5968e6 construct: Add primitive console history. 2019-02-09 18:43:05 -08:00
Jason Volk 4827ab4103 Construct: Split headers. 2019-02-09 18:43:05 -08:00
Jason Volk 3151931ee4 Linker options package. 2019-02-08 18:24:20 -08:00
Jason Volk d639eceba2 ircd: Move runlevel related into ircd::run:: namespace. 2019-01-18 09:08:56 -08:00
Jason Volk 3466597981 ircd::fs: Various reorg; cleanup. 2018-12-29 19:43:17 -08:00
Jason Volk 23d8396652 construct: Suppress log output during interval, not during cmd. 2018-12-24 16:15:23 -08:00
Jason Volk f56488dda2 construct: Add a console watch cmd. 2018-12-23 18:52:29 -08:00
Jason Volk 956a8e239c Use more aggressive tls-model options. 2018-12-23 17:36:35 -08:00
Jason Volk 4c6f90f9e5 construct: Add interruption point before waiting for input. 2018-12-17 12:16:26 -08:00
Jason Volk 955c5ccfa1 construct: Don't exempt the console from watchdog warnings. 2018-12-15 20:29:54 -08:00
Jason Volk 399198deac ircd::ctx: Add flags for slice and stack usage watchdog exemption. 2018-12-13 16:21:54 -08:00
Jason Volk 1906ac57b7 construct: Restructure signal handling to object, unit; restructure console into object. 2018-12-11 16:30:28 -08:00
Jason Volk 1ba22a21ba ircd: Disperse accumulated global options as conf items in namespaces. 2018-12-08 15:36:34 -08:00
Jason Volk d065ef1aa4 construct: Add a -quiet command line option. 2018-12-05 19:04:05 -08:00
Jason Volk ca525b081f ircd: Add noaio global flag; add command line option. 2018-12-01 15:55:53 -08:00
Jason Volk 36b4e3cabe ircd: Add init parameters for different origin and hostname strings. 2018-12-01 14:55:38 -08:00
Jason Volk d35dad46c2 configure: Add EXTRA_LIBS rather than modifying LIBS here. 2018-11-29 13:46:45 -08:00
Jason Volk 02f2753487 construct: Abort console on entry into runlevel QUIT as well. 2018-11-13 10:52:25 -08:00
Jason Volk 1b23a7448c construct: Add console record cmd to dump output to a logfile. 2018-11-13 10:52:21 -08:00
Jason Volk 10e358d835 modules/console: Add the die cmd; move exit cmd. 2018-11-13 10:40:00 -08:00
Jason Volk 73def04e3e construct: Use conf items for console output ratelimits. 2018-11-13 10:39:56 -08:00
Jason Volk 8931ce8b38 construct: Add conf item for console stack size; minor cleanup. 2018-11-13 09:43:32 -08:00
Jason Volk 9f6faf13ce construct: Update comment. 2018-11-13 09:32:32 -08:00
Jason Volk eb28961561 construct: Minor cleanup. 2018-11-03 04:06:56 -07:00
Jason Volk e2bc5a5245 construct/Makefile.am: Fix issues with LDFLAGS and LIBS lists. 2018-10-09 20:48:07 -07:00
Jason Volk 11948e47ac ircd: Move m::import to mods::import where it is more appropriate. 2018-09-13 18:19:27 -07:00
Jason Volk 60a0694853 construct: Add program option to disable direct IO. 2018-09-03 07:59:05 -07:00
Jason Volk c980ce464f configure: Rework the SSL support sections. 2018-09-03 03:05:09 -07:00
Jason Volk 94a2fdacb5 modules/s_conf: Improve rehashing interface; adjust console cmds. 2018-09-02 21:57:30 -07:00
Jason Volk 1bd130bf94 construct: Remove the startup root euid check. gl;hf. 2018-08-28 13:05:10 -07:00
Jason Volk 9cee6a40c9 construct: Interruption point after command. 2018-08-17 14:26:44 -07:00
Jason Volk d1944c6006 construct/ircd: Use hostname-based init from command line params. 2018-08-13 14:36:50 -07:00
Jason Volk 6dec6dca3e construct: Add more whitespace to err strings. 2018-08-13 14:35:27 -07:00
Jason Volk c8a54a1a3e construct: Remove duplicate getopt file. 2018-08-13 13:51:05 -07:00
Jason Volk 8fb580aaf5 configure/ircd: Overhaul install system directory related. 2018-08-12 16:30:51 -07:00
Jason Volk a98bd357df construct/ircd: Add -pitrecdb option to allow point-in-time recovery. 2018-07-06 17:09:33 -07:00
Jason Volk 8fcd6379a4 construct/ircd: Add -nojs option to not init js engine. 2018-07-05 16:57:47 -07:00
Jason Volk 4a0a89cce9 construct: Remove/simplify this for now. 2018-07-02 02:34:28 -07:00
Jason Volk b304aec5bc construct: Remove the conftest startup option. 2018-06-14 21:58:45 -06:00
Jason Volk eec3196ef0 console: Increase the input buffer; take off stack. 2018-06-06 10:50:41 -07:00
Jason Volk 2b654d13c5 configure: Reorg various third-party sections; add lz4 support. 2018-06-03 08:35:44 -07:00
Jason Volk f41c50af5b Makefile: ld.gold arguments package. 2018-05-31 16:32:55 -07:00
Jason Volk 7461de8b3d ircd::db: Condition to check database from ircd::checkdb via -checkdb command line option. 2018-05-31 12:47:37 -07:00
Jason Volk bef69d9864 construct: Truncate comment. 2018-05-28 19:28:55 -07:00
Jason Volk a1a3c60277 construct: Do signaled conf rehash in an ircd::ctx and only in runlevel::RUN. 2018-05-28 07:04:06 -07:00
Jason Volk 0311f4d44e construct: Add back the SIGUSR1 handler to rehash running conf from !conf room. 2018-05-25 23:48:07 -07:00
Jason Volk 0a1e267b79 construct: Remove SIGTSTP handler registration. 2018-05-25 21:03:11 -07:00
Jason Volk b2b5d6abce construct: Simplify various behavior based on runlevel. 2018-05-19 18:49:05 -07:00
Jason Volk 7bf9736a23 construct: Remove SIGTSTP related stuff; minor cleanup. 2018-05-07 19:22:41 -07:00
Jason Volk 024912d072 construct: Ensure console_termstop executes in ctx. 2018-05-07 19:21:00 -07:00
Jason Volk 0df06b0b62 construct: Show console message only once per execution. 2018-04-26 03:23:48 -07:00
Jason Volk 4ee21dba48 construct: Remove the unnecessary dummy resolver instance. 2018-04-15 18:02:42 -07:00
Jason Volk 5b6ffdaed2 construct: Update console msg; repurpose exit cmd; various cleanup. 2018-04-13 17:40:37 -07:00
Jason Volk c61186fb8f construct: Slightly slower console output throttle. 2018-04-08 12:38:38 -07:00
Jason Volk da6a39812f construct: Suppress log messages during command output sequence. 2018-04-07 09:57:08 -07:00
Jason Volk e5d8d6ae67 construct: Improve console interrupt related. 2018-04-06 23:35:25 -07:00
Jason Volk 58af1ae88c construct;modules/s_control: Fix output stream related. 2018-04-06 23:35:09 -07:00
Jason Volk 3d16a89e33 construct: Include command in bad_command so what() is non-empty. 2018-04-05 20:09:46 -07:00
Jason Volk 8632998eca construct: Adjust signal handling stack indicating proper continuation. 2018-04-04 22:54:58 -07:00
Jason Volk 9db0871c2f construct: Minor README paragraph order. 2018-04-04 12:01:44 -07:00
Jason Volk 549452d7fc construct: Use static named options argument to console command. 2018-03-28 18:12:49 -07:00
Jason Volk 1ceaa73e5b modules/console: Extend arguments for options string. 2018-03-26 00:12:16 -07:00
Jason Volk 60a28ab5a8 modules/console: Eliminate output stream global; improve output related; various cleanup. 2018-03-25 23:40:35 -07:00
Jason Volk 065370c38a configure.ac: parameter package. 2018-03-24 03:19:16 -07:00
Jason Volk 9306e7c32e construct: Remove console readline; use fs::stdin::readline. 2018-03-23 22:52:36 -07:00
Jason Volk e9fcd7f1da construct: Fix console runlevel entry conditions. 2018-03-23 22:17:09 -07:00
Jason Volk 91c9737f29 ircd: Improve runlevel changed callback related. 2018-03-23 22:17:09 -07:00
Jason Volk af8835aa5c construct/ircd: Add option to soft-indicate no modules should be loaded on startup. 2018-03-16 21:42:22 -07:00
Jason Volk 7daef82218 construct/ircd: Add option to soft-indicate no listening sockets should be bound. 2018-03-16 21:42:22 -07:00
Jason Volk 143c867ad8 modules: Rename s_console back to console so it's not mapped by ircd:Ⓜ️:modules. 2018-03-06 07:50:14 -08:00
Jason Volk 5c1cb57e9c modules: Reorg conf/console related; add s_control. 2018-03-05 05:24:45 -08:00
Jason Volk 1a743f1705 construct: Fix console regressions/rot. 2018-02-23 18:18:06 -08:00
Jason Volk 797142f710 construct: Rename directory. 2018-02-22 14:30:11 -08:00