diff options
author | alfred <alfred@FreeBSD.org> | 2001-10-03 11:01:39 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2001-10-03 11:01:39 +0000 |
commit | 036a7d2e1688689f783ebefd53b45eeea061cbfb (patch) | |
tree | 0219a40db31f5dd59337537729af770f6b41f53c /lib/libc/stdlib/malloc.c | |
parent | fb11970d9b2635eb11c0f1598f313c9a4d5464f4 (diff) | |
download | FreeBSD-src-036a7d2e1688689f783ebefd53b45eeea061cbfb.zip FreeBSD-src-036a7d2e1688689f783ebefd53b45eeea061cbfb.tar.gz |
Avoid getting stuck in system(3) when the internal call to wait4()
is interrupted by saving the pid.
The old code would assign the return value to pid which would trash
it, to fix the problem save a copy of the pid to be used as the
paramter to wait4().
Submitted by: Toshihiko ARAI <toshi@jp.FreeBSD.org>
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions