citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit 76537d3b88741f9e0537adea0a5a88a78f790e8b
parent 72528a3ad5e0a74e67e4cf3294762e6773c40d12
Author: Kyle Milz <kyle@0x30.net>
Date:   Tue, 14 Jun 2016 20:53:28 -0600

SCV/Project: always kill running processes on project destroy

Diffstat:
MSCV/Project.pm | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/SCV/Project.pm b/SCV/Project.pm @@ -129,4 +129,10 @@ sub get_tmpdir { return $self->{tmp_dir}; } +sub DESTROY { + my ($self) = @_; + + $self->kill() if ($self->{pid}); +} + 1;