> As far as I can see from the source, bootlogd will return 0 on
> success, and 1 if any problems are detected.  I'm also unable to see
> how it could return 1 without printing any error messages.
> 

Well, I am talking about this part:

        /*
         *      Fork and write pidfile if needed.
         */
        if (!dontfork) {
                if (fork())
                        exit(1);
                setsid();
        }

If I understand well, for the parent, fork will return with the child
pid, so exit(1) will be executed and hence 1 will be the return code for
successfull forking. Am I wrong somewhere ?

Yann





-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to