From owner-freebsd-hackers Mon Sep 13 10:49: 2 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from loki.iss.net (loki.iss.net [208.21.0.3]) by hub.freebsd.org (Postfix) with ESMTP id 9B3A0156A9 for ; Mon, 13 Sep 1999 10:48:16 -0700 (PDT) (envelope-from bmitchel@iss.net) Received: from egon.iss.net (egon.iss.net [208.21.4.146]) by loki.iss.net (8.9.3/8.9.3) with SMTP id NAA02351; Mon, 13 Sep 1999 13:46:03 -0400 Date: Mon, 13 Sep 1999 13:57:03 -0400 (EDT) From: "Brian Mitchell (ISSATL)" To: Zhihui Zhang Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Let a daemon process print a message In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG syslog() with the proper facility is probably the best way to do this. Another possibility is opening /dev/console, but I think that will aquire a controlling terminal. On Mon, 13 Sep 1999, Zhihui Zhang wrote: > > Can anyone tell me how to let a daemon process print a message to the > console? Adding printf() does not work (I wonder if a daemon process > has been cut of relationship with stdout). Thanks for any help. > > -------------------------------------------------- > Zhihui Zhang. Please visit http://www.freebsd.org > -------------------------------------------------- > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message