From owner-freebsd-hackers Tue Dec 28 14:24:37 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from luna.lyris.net (luna.shelby.com [207.90.155.6]) by hub.freebsd.org (Postfix) with ESMTP id 6543F1557B for ; Tue, 28 Dec 1999 14:24:30 -0800 (PST) (envelope-from kip@lyris.com) Received: from luna.shelby.com by luna.lyris.net (8.9.1b+Sun/SMI-SVR4) id OAA03952; Tue, 28 Dec 1999 14:20:47 -0800 (PST) Received: from (luna.shelby.com [207.90.155.6]) by luna.shelby.com with SMTP (MailShield v1.50); Tue, 28 Dec 1999 14:20:47 -0800 Date: Tue, 28 Dec 1999 14:20:47 -0800 (PST) From: Kip Macy To: "Richard Seaman, Jr." Cc: Steffen Merkel , freebsd-hackers@FreeBSD.ORG Subject: Re: Kernel threads In-Reply-To: <19991228111058.B75539@tar.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SMTP-HELO: luna X-SMTP-MAIL-FROM: kip@lyris.com X-SMTP-RCPT-TO: dick@tar.com,d_f0rce@gmx.de,freebsd-hackers@FreeBSD.ORG X-SMTP-PEER-INFO: luna.shelby.com [207.90.155.6] Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 28 Dec 1999, Richard Seaman, Jr. wrote: > On Tue, Dec 28, 1999 at 08:30:08AM -0600, Richard Seaman, Jr. wrote: > > On Tue, Dec 28, 1999 at 10:44:19AM +0100, Steffen Merkel wrote: > > > > > Sorry, but I'm learning C for only some weeks now. Why does the main > > > thread complete if I insert a while(1); ? I thougt that this while statement > > > would get executed forever (until I press ^C). > > > > You're right, of course. My brain was not fully in gear when I wrote that. > > BTW, I compiled your program with the while(1) included and it runs fine > here. Newer version of the library perhaps? Just a thought. -Kip To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message