From 112fd7fc5dde4ccd9caa7cdf98b84be914d380b5 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Thu, 16 Sep 2021 18:06:32 -0700 Subject: vmon: only save SIGCHLD snapshot w/{-s,--snapshot} Apparently I never actually made this conditional on the flag... --- src/vmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vmon.c') 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; -- cgit v1.2.3