From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4ACC9C6F.5070601@domain.hid> Date: Wed, 07 Oct 2009 15:49:35 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Subject: Re: [Xenomai-help] Re-6: rt_printf with daemonized task List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: oliver.schlenker@domain.hid Cc: xenomai@xenomai.org oliver.schlenker@domain.hid wrote: > > > in the glibc documentation it's specified as a void function : > > 18.2.2 syslog, vsyslog > > The symbols referred to in this section are declared in the file syslog.h. > — Function: void syslog (int facility_priority, char *format, ...) So, the first argument is a format string? You should pass "%s" followed by head->text then, not head->text directly. If head->text contains the % characters, you will get errors. I do not think fixing this will fix your issues though. I have no idea why it fails. Did you try to put a printf as well as the syslog call to check whether syslog is really called? Are you 100% sure that you do not close file descriptors when daemonizing your process? -- Gilles