ts-7000
[Top] [All Lists]

Re: [ts-7000] Problem with daemon

To:
Subject: Re: [ts-7000] Problem with daemon
From: "Breton M. Saunders" <>
Date: Thu, 15 Jan 2009 10:33:44 +0000
Jordi Soucheiron wrote:
> What do you mean with partially?
>
> 2009/1/15 pouettagada < <>>
>
>     Hello all, I've wrote a socket-server application in C. It works
>     perfectly if I run it my self. But when I wrote a script to run it
>     just after the init (as a daemon), my application works partially.
>     How is it possible? There is something to do for a daemon?
>
>
>
Jordi,

  That's not a particularly detailed description of your problem.

  Just as a guess, if you're calling daemon() you need to be careful:
    1) std in/out will be redirected, and
    2) Environment variables will vanish.

  You need to check these things whenever calling daemon().  I worked 
around #2 by copying the environment variables, and re-setting them 
after the daemon call.

    -Brett

------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU