From owner-freebsd-hackers Wed Mar 12 00:05:24 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id AAA23849 for hackers-outgoing; Wed, 12 Mar 1997 00:05:24 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id AAA23843 for ; Wed, 12 Mar 1997 00:05:15 -0800 (PST) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id JAA21595; Wed, 12 Mar 1997 09:04:59 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.8.5) id IAA07674; Wed, 12 Mar 1997 08:35:56 +0100 (MET) Message-ID: <19970312083556.GK30014@uriah.heep.sax.de> Date: Wed, 12 Mar 1997 08:35:56 +0100 From: j@uriah.heep.sax.de (J Wunsch) To: andrew@ugh.net.au (Andrew) Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: My child dosn't exit :-( References: X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: ; from Andrew on Mar 12, 1997 13:06:11 +1100 Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Andrew wrote: > As this works under 2.1.x but not 2.2 I am guessing something has changed. > If anyone could give me some help I would be most grateful. The pipe code has been drastically rewritten. Where is the child hanging? Look at the WCHAN message in a ps -alx output. Also, there's ktrace, this might help you to find out what system calls the child has already done. Finally, you can compile passwd with -g debugging symbols, and run gdb on it. gdb can now also attach to a running process, and will stop the process as soon as it attaches. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)