summaryrefslogtreecommitdiff
path: root/sysdeps/mach/hurd/profil.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/mach/hurd/profil.c')
-rw-r--r--sysdeps/mach/hurd/profil.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sysdeps/mach/hurd/profil.c b/sysdeps/mach/hurd/profil.c
index 4032219a9e..43456ec628 100644
--- a/sysdeps/mach/hurd/profil.c
+++ b/sysdeps/mach/hurd/profil.c
@@ -158,7 +158,10 @@ fork_profil (void)
ss = sample_scale;
sample_scale = 0;
- err = update_waiter (sb, n * sizeof *sb, o, ss);
- assert_perror (err);
+ if (ss != 0)
+ {
+ err = update_waiter (sb, n * sizeof *sb, o, ss);
+ assert_perror (err);
+ }
}
text_set_element (_hurd_fork_child_hook, fork_profil);