From owner-freebsd-hackers Wed Mar 12 01:24:17 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id BAA29636 for hackers-outgoing; Wed, 12 Mar 1997 01:24:17 -0800 (PST) Received: from cottontail.hobart.tased.edu.au (root@cottontail.hobart.tased.edu.au [147.41.41.147]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id BAA29629 for ; Wed, 12 Mar 1997 01:24:12 -0800 (PST) Received: from localhost (andrew@localhost) by cottontail.hobart.tased.edu.au (8.6.12/8.6.12) with SMTP id UAA01532; Wed, 12 Mar 1997 20:23:58 +1100 X-Authentication-Warning: cottontail.hobart.tased.edu.au: andrew owned process doing -bs Date: Wed, 12 Mar 1997 20:23:58 +1100 (EST) From: Andrew X-Sender: andrew@cottontail.hobart.tased.edu.au To: Joerg Wunsch cc: freebsd-hackers@FreeBSD.ORG Subject: Re: My child dosn't exit :-( In-Reply-To: <19970312083556.GK30014@uriah.heep.sax.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Wed, 12 Mar 1997, J Wunsch wrote: > Where is the child hanging? The child execs successfully and the a watch shows: Changing local password for test. Old password: New password: Retype new password: passwd: rebuilding the database... passwd: done > Look at the WCHAN message in a ps -alx WCHAN STAT COMMAND ttywai SEs (passwd) > output. Also, there's ktrace, this might help you to find out what > system calls the child has already done. I'm assuming that passwd must have successfully executed or it woudln't have printed passwd: done. If you think ktrace wil help I'll put it in the kernel but I will need to be pointed towards instructions on how to use it once its in there...man -k ktrace perhaps... > 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. This is much as above but I will try this also if you think it will help...I might just check the source code and see if passwd does anything after printing done. Thanks, Andrew