summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2021-09-16 18:06:32 -0700
committerVito Caputo <vcaputo@pengaru.com>2021-09-16 18:06:32 -0700
commit112fd7fc5dde4ccd9caa7cdf98b84be914d380b5 (patch)
tree29f53f05d855a7a49b904dec350fc4007a94be8e
parent28a03ea73cc5e09397b9656b167051b47f8d24d4 (diff)
vmon: only save SIGCHLD snapshot w/{-s,--snapshot}
Apparently I never actually made this conditional on the flag...
-rw-r--r--src/vmon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vmon.c b/src/vmon.c
index 9e13c04..9a32031 100644
--- a/src/vmon.c
+++ b/src/vmon.c
@@ -654,7 +654,7 @@ int main(int argc, char * const argv[])
if (got_sigchld) {
int status;
- if (vmon_snapshot(vmon) < 0)
+ if (vmon->snapshot && vmon_snapshot(vmon) < 0)
VWM_ERROR("error saving snapshot");
got_sigchld = 0;
© All Rights Reserved