Date: Wed, 12 Mar 1997 13:06:11 +1100 (EST) From: Andrew <andrew@ugh.net.au> To: freebsd-hackers@freebsd.org Subject: My child dosn't exit :-( Message-ID: <Pine.NEB.3.93.970312125438.235B-100000@cottontail.hobart.tased.edu.au>
next in thread | raw e-mail | index | archive | help
Hi All, A while back, by following instructions I found in the mail archives I ported poppassd (the Eudora password changer) to FreeBSD 2.1.x. I have now received reports that it dosnt work under 2.2-gamma which I have been able to confirm myself. Unfortunately I know very little about C and UNIX programing but what I have been able to tell from the source, gdb and watch is: The program talks to the network client, asking for username and password. It checks the username and password. It then forks, the child changes its uid to that of the user and execs passwd. The parent then talks to the child (passwd) with the correct commands to get passwd to change the users passwd. All works well to this point. Unfortunately the child (passwd) dosn't exit. watch indicates that paswwd successfully completes and you get the passwd: done line but the tty dosn't actually get closed and the parent gets stuck in wait. 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. Thanks, Andrew
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.93.970312125438.235B-100000>