From db65048bb3c73fc0ec408df62c6f78fa39d62d85 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 11 Oct 1995 05:53:53 +0000 Subject: Wed Oct 11 00:00:00 1995 Roland McGrath * Makeconfig (config-LDFLAGS): Add missing slash. * sysdeps/mach/hurd/profil.c (fork_profil): Only call update_waiter if profiling was enabled in the parent. * csu/initfini.c: Don't pass -f flag to cp. --- sysdeps/mach/hurd/profil.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sysdeps') 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); -- cgit v1.2.3