Received: from konishi-polis.mit.edu (STRATTON-ONE-TWENTY-NINE.MIT.EDU [18.187.5.129]) by krbdev.mit.edu (8.9.3) with ESMTP id TAA22768; Thu, 5 Jun 2003 19:09:41 -0400 (EDT) Received: by konishi-polis.mit.edu (Postfix, from userid 8042) id 076EB151582; Thu, 5 Jun 2003 19:09:37 -0400 (EDT) To: rt@krbdev.mit.edu Subject: [krbdev.mit.edu #1547] Using fork instead of vfork Message-Id: <20030605230937.076EB151582@konishi-polis.mit.edu> Date: Thu, 5 Jun 2003 19:09:37 -0400 (EDT) From: hartmans@mit.edu (Sam Hartman) RT-Send-Cc: X-RT-Original-Encoding: iso-8859-1 Content-Length: 539 There appears to be some problem using vfork in ftpd_popen. The symptoms seem to suggest that ls is getting a broken pipe signal. Two possibilities exist. Some strace output suggests that vfork is returning 0 in the parent. This would explain the problem, but would be a fairly serious bug in Redhat. However strace does suggest that vfork is returning 0 in the parent. An alternate explanation is that modifying file descriptors in the child after calling vfork does not work well. We have decided to use fork instead of vfork.