Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Mar 1997 20:23:58 +1100 (EST)
From:      Andrew <andrew@ugh.net.au>
To:        Joerg Wunsch <joerg_wunsch@uriah.heep.sax.de>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: My child dosn't exit :-(
Message-ID:  <Pine.NEB.3.93.970312201333.1482C-100000@cottontail.hobart.tased.edu.au>
In-Reply-To: <19970312083556.GK30014@uriah.heep.sax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.93.970312201333.1482C-100000>