aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-10-11 05:53:53 +0000
committerRoland McGrath <roland@gnu.org>1995-10-11 05:53:53 +0000
commitdb65048bb3c73fc0ec408df62c6f78fa39d62d85 (patch)
treebd924c431be839070bf9c83bbfe75e889a3ce57e /sysdeps/mach/hurd/profil.c
parentTue Oct 10 23:08:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> (diff)
downloadglibc-db65048bb3c73fc0ec408df62c6f78fa39d62d85.tar.gz
glibc-db65048bb3c73fc0ec408df62c6f78fa39d62d85.tar.bz2
glibc-db65048bb3c73fc0ec408df62c6f78fa39d62d85.zip
Wed Oct 11 00:00:00 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* 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.
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);