Commit Graph

20 Commits (master)

Author SHA1 Message Date
Julian Rother 793e22ecb7 mthread: reduce memory usage
mthread keeps header data of all messages in memory until it exits without
ever using it. With this change it frees the header data of each message
right after processing it.

Closes: #222 [via git-merge-pr]
2 years ago
Tim Kuijsten 4763032430 pledge(2) all programs
All programs except mshow have a very tight set of promises. mshow
has a broad set of promises and might be a good future candidate
to further restrict using unveil(2).

This patch is based on commit 0300a112 by Alex Holst (dated
2017-12-07), which was proposed in GH PR #79.

* pledged mpick, mflow and mdate so that now all programs are pledged
* removed some unneeded promises and added some missing promises
* move err.h include and OpenBSD ifdef into a new xpledge.h
* cleaned up code aligning and whitespace

Closes: #179 [via git-merge-pr]
4 years ago
Leah Neukirchen 41a9a6b40d mthread: remove count output
Closes #174.
4 years ago
Leah Neukirchen 61caf5a6a3 mthread: comment depth convention 4 years ago
Leah Neukirchen 4927d44d55 mthread: add -p to only add parent messages via -S 4 years ago
Leah Neukirchen 62da7c59ea mthread: add -r to reverse top-level order 4 years ago
Leah Neukirchen a60e705e51 mthread: make malloc failure fatal 5 years ago
Leah Neukirchen 1288ade9ed mthread: keep toplevel thread date-order when pruning
Else this could result in a toplevel thread getting pruned, but its
child has an older date than was calculated by newest(), messing up the
order.
6 years ago
Leah Neukirchen 9f10db393e mthread: avoid truncating internal buffer 6 years ago
Leah Neukirchen ebae697000 mthread: thread: fix small leak 6 years ago
Leah Neukirchen 5e7c300b42 blaze822: blaze822_loop: use long as return type 6 years ago
Leah Neukirchen 66d0eff12f style 7 years ago
Leah Neukirchen 841984f645 mthread: add optional message support 7 years ago
Leah Neukirchen 9da17f5978 mthread: fix infinite recursion
This fixes:

References: <5> <4> <6>
Message-ID: <3>

References: <6>
Message-ID: <5>

References: <3> <2>
Message-ID: <1>
7 years ago
Leah Neukirchen 24d0941043 mthread: ignore sequence indentation, to allow rethreading 7 years ago
Christian Neukirchen 67f61f18ba mthread: add usage 8 years ago
Christian Neukirchen 8855568c19 mthread: use blaze822_loop1 8 years ago
Christian Neukirchen 4eff264615 mthread: -v to not prune 8 years ago
Christian Neukirchen f3c4a50d53 mthread: default to all messages when interactive w/o args 8 years ago
Christian Neukirchen a38fafed2b mthread: rename from thread 8 years ago