summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/signal_unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/runtime/signal_unix.c')
-rw-r--r--src/pkg/runtime/signal_unix.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pkg/runtime/signal_unix.c b/src/pkg/runtime/signal_unix.c
index 54e461f99..4d14b2208 100644
--- a/src/pkg/runtime/signal_unix.c
+++ b/src/pkg/runtime/signal_unix.c
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +build darwin freebsd linux openbsd netbsd
+// +build darwin dragonfly freebsd linux openbsd netbsd
#include "runtime.h"
#include "defs_GOOS_GOARCH.h"
@@ -83,13 +83,11 @@ runtime·resetcpuprofiler(int32 hz)
runtime·memclr((byte*)&it, sizeof it);
if(hz == 0) {
runtime·setitimer(ITIMER_PROF, &it, nil);
- runtime·setprof(false);
} else {
it.it_interval.tv_sec = 0;
it.it_interval.tv_usec = 1000000 / hz;
it.it_value = it.it_interval;
runtime·setitimer(ITIMER_PROF, &it, nil);
- runtime·setprof(true);
}
m->profilehz = hz;
}