Commits
- Commit:
6b5c4000434cc5dc67e202d8aede2f543b5b2bf3- From:
- rsadowski <rsadowski@openbsd.org>
- Date:
Standardize logging with bgpd
OK claudio@
- Commit:
418ab141e444db9b7f3d7c2afc4351f7ef4bccfc- From:
- claudio <claudio@openbsd.org>
- Date:
Convert various reyk proc.c daemons over to new imsgbuf_init and
imsgbuf_allow_fdpass.
OK tb@
- Commit:
a523d270f0229581bdb138c7324f3f7379f381b5- From:
- claudio <claudio@openbsd.org>
- Date:
Convert the common imsgbuf_read calls to the post EAGAIN world.
OK tb@
- Commit:
4e3b971d1bd7f46fd63873b5cc1733984b0e24dc- From:
- claudio <claudio@openbsd.org>
- Date:
Use imsgbuf_clear() where appropriate instead of msgbuf_clear().
OK tb@
- Commit:
585eb3254921938d12e233e6029f136bc0f8b987- From:
- claudio <claudio@openbsd.org>
- Date:
Rename imsg_init, imsg_clear, imsg_read, imsg_write and imsg_flush to
imsgbuf_init, imsgbuf_clear, imsgbuf_read, imsgbuf_write and imsgbuf_flush.
This separates the imsgbuf API from the per-imsg API.
OK tb@
- Commit:
41ddc9d163020f85bddcaf4c7261ab2818848c59- From:
- claudio <claudio@openbsd.org>
- Date:
Convert imsg_write() callers to the new simplified return logic.
OK tb@
- Commit:
1be2558a99f45bf2af156906cd98ba2a7a97198d- From:
- claudio <claudio@openbsd.org>
- Date:
Introduce imsg_write() and use it instead of msgbuf_write().
imsg_write() is just a thin wrapper around msgbuf_write(). So this is
mostly search and replace.
OK tb@
- Commit:
766191c735d0466cd4b66fde449f0c5d289008a1- From:
- guenther <guenther@openbsd.org>
- Date:
Delete obsolete /* ARGSUSED */ lint comments.
ok miod@ millert@
- Commit:
b9228e18533831c79414ade1724ed22d9794861a- From:
- dv <dv@openbsd.org>
- Date:
Move TAILQ initialization to files where they are used.
These priv-sep daemons all follow a similar design and use TAILQs
for tracking control process connections. In most cases, the TAILQs
are initialized separate from where they are used. Since the scope
of use is generally confined to a specific control process file,
this commit also removes any extern definitions and exposing the
TAILQ structures to other compilation units.
ok bluhm@, tb@
- Commit:
afbe8d84fc7bbb7c2893503880772d964533ea1a- From:
- reyk <reyk@openbsd.org>
- Date:
Stop accessing verbose and debug variables from log.c directly.
This replaces log_verbose() and "extern int verbose" with the two functions
log_setverbose() and log_getverbose().
Pointed out by benno@
OK krw@ eric@ gilles@ (OK gilles@ for the snmpd bits as well)
- Commit:
602b9b65961314087420e5a9775817ff78453c1d- From:
- krw <krw@openbsd.org>
- Date:
Replace hand-rolled for(;;) traversal of ctl_conns TAILQ with
TAILQ_FOREACH().
No intentional functional change.
ok reyk@
- Commit:
04adeb6387c7fee4f3d1c75bb4b8fa7b6f6fff9d- From:
- reyk <reyk@openbsd.org>
- Date:
spacing
- Commit:
3b28f64e7ce90c385f9cba796eea7679429013e3- From:
- reyk <reyk@openbsd.org>
- Date:
As done in httpd, remove ps_ninstances and p_instance.
OK benno@ rzalamena@
- Commit:
f75f53ad20841e2eea50d8b89ab2ee11add6aca4- From:
- claudio <claudio@openbsd.org>
- Date:
EAGAIN handling for imsg_read. OK henning@ benno@
- Commit:
141b9058ce43c28db842829304e8909a29d231bb- From:
- reyk <reyk@openbsd.org>
- Date:
In most cases we don't need all arguments of proc_compose*_imsg(),
so add a shortcut proc_compose*() that skips all of them. Only use the
full argument list if needed. The functions with full argument lists can
eventually be replaced with a nicer transaction-based approach later.
OK benno@
- Commit:
24dcf092825c2f258ae81a032dfe529978e6dd09- From:
- reyk <reyk@openbsd.org>
- Date:
Use SOCK_NONBLOCK in relayd as well.
OK benno@
- Commit:
7b1816054203ab5f4c334f5ad70b5c8d7dd888e4- From:
- florian <florian@openbsd.org>
- Date:
Do not try to unlink the control socket in an unprivileged child
process on shutdown.
Found while working on tame(2).
OK benno@
- Commit:
d93c36af2b8111f07ff7645770d4714a2e5aef96- From:
- reyk <reyk@openbsd.org>
- Date:
Clean up the relayd headers with help of include-what-you-use and some
manual review. Based on common practice, relayd.h now includes the
necessary headers for itself.
OK benno@
- Commit:
2f6ec04dcc8d2ec0050455263b94308f36252825- From:
- deraadt <deraadt@openbsd.org>
- Date:
Adapt to <limits.h> universe.
ok millert
- Commit:
d357efd396d6d6309cca7017cb75ead6dbd5a673- From:
- krw <krw@openbsd.org>
- Date:
Tweak error checking for msgbuf_write() as recommended by the imsg
gurus.
ok reyk@ benno@
- Commit:
b69bbaa8fe9643afd0a97f5b69ec5fb91c563ff4- From:
- benno <benno@openbsd.org>
- Date:
handle msgbuf_write() returning EAGAIN
- Commit:
8041276c735a3b4200fea240c7017f98dedf8941- From:
- deraadt <deraadt@openbsd.org>
- Date:
handle ECONNABORTED errors from accept(). In many code blocks they can be
ignored silently and without aborting, much like EINTR and EWOULDBLOCK are.
ok's from various maintainers of these directories...
- Commit:
89e136f0043fbd6b579cb4e4babe0d66f4acdfbe- From:
- deraadt <deraadt@openbsd.org>
- Date:
relayd re-uses the event callbacks and passes the value of iev.data
as the third argument (so that should be a copy of the 5th argument
of event_set(). it boggles the mind.
- Commit:
e2545807149dd1c137de7db7e1978ea9dd29420d- From:
- deraadt <deraadt@openbsd.org>
- Date:
delete excessive evtimer_pending; ok claudio
- Commit:
1ca19f87b22d027248db6542bef478f260b80593- From:
- deraadt <deraadt@openbsd.org>
- Date:
Do rate limiting of accept() when under pressure, like in other recent
daemons. Light testing by some relayd users; let me know if issues
develop.
