diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2021-09-16 18:06:32 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2021-09-16 18:06:32 -0700 |
commit | 112fd7fc5dde4ccd9caa7cdf98b84be914d380b5 (patch) | |
tree | 29f53f05d855a7a49b904dec350fc4007a94be8e /src | |
parent | 28a03ea73cc5e09397b9656b167051b47f8d24d4 (diff) |
vmon: only save SIGCHLD snapshot w/{-s,--snapshot}
Apparently I never actually made this conditional on the flag...
Diffstat (limited to 'src')
-rw-r--r-- | src/vmon.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |