From owner-freebsd-hackers Sun Mar 2 01:31:05 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id BAA01368 for hackers-outgoing; Sun, 2 Mar 1997 01:31:05 -0800 (PST) Received: from hydrogen.nike.efn.org (resnet.uoregon.edu [128.223.170.28]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id BAA01356 for ; Sun, 2 Mar 1997 01:30:53 -0800 (PST) Received: (from jmg@localhost) by hydrogen.nike.efn.org (8.8.4/8.8.4) id BAA09068; Sun, 2 Mar 1997 01:30:26 -0800 (PST) Message-ID: <19970302013026.PR59577@hydrogen.nike.efn.org> Date: Sun, 2 Mar 1997 01:30:26 -0800 From: jmg@hydrogen.nike.efn.org (John-Mark Gurney) To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) Cc: freebsd-hackers@freebsd.org (FreeBSD Hackers) Subject: Re: 2.2, 3.0 pkg_manage - where are you :-( References: <17166.857231990@time.cdrom.com> X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 Reply-To: John-Mark Gurney X-Operating-System: FreeBSD hydrogen.nike.efn.org 2.2-960801-SNAP FreeBSD 2.2-960801-SNAP #4: Wed Jan 8 20:48:39 PST 1997 jmg@hydrogen.nike.efn.org:/usr/src/sys/compile/hydrogen i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 Organization: Cu Networking In-Reply-To: ; from J Wunsch on Mar 2, 1997 09:27:44 +0100 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk J Wunsch writes: > As Jamie Bowden wrote: > > > Shame that seems to be broken. On three different installs now, two over > > ftp, and one from a cd I burned, sysinstall will freeze during package > > installation. Everything seems to be fine, and it starts installing > > packages okay, but it will freeze up after about 10 packages or so. > > Hmm. What says your console (Alt-F2)? If it says ``out of > processes'', i wouldn't be surprised. sysinstall runs as init, but > i've seen the above one time as well, due to there being many zombies > around. Apparently, sysinstall isn't very interested in the death of > its children. OTOH, it _sometimes_ is interested, and that was enough > to defeat the idea to install a global SIGCHILD handler. (Been there, > done that.) why not put a line like: wait4(-1, &dummy, WNOHANG, 0); at the end of the loop that does a package install... I have had this same problem with a daemon I wrote... so I simply added this line in the loop... seemed to fix my problems... also it would only clear the processes that have exited since you started the packet install... just a thought... ttyl.. -- John-Mark gurney_j@efn.org http://resnet.uoregon.edu/~gurney_j/ Modem/FAX: (541) 683-6954 (FreeBSD Box) Live in Peace, destroy Micro$oft, support free software, run FreeBSD (unix)