Ack but please use ticket 581 instead.

And please put in a reason for the change in the commit message body

/HansF

On 12/09/2013 09:23 AM, Hans Nordeback wrote:
>   osaf/libs/core/common/daemon.c |  8 +++++++-
>   1 files changed, 7 insertions(+), 1 deletions(-)
>
>
> use _exit instead of exit in daemon_exit
>
> diff --git a/osaf/libs/core/common/daemon.c b/osaf/libs/core/common/daemon.c
> --- a/osaf/libs/core/common/daemon.c
> +++ b/osaf/libs/core/common/daemon.c
> @@ -43,6 +43,8 @@
>
>   #define DEFAULT_RUNAS_USERNAME      "opensaf"
>
> +extern  void __gcov_flush(void) __attribute__((weak));
> +
>   static char __pidfile[NAME_MAX];
>   static char __tracefile[NAME_MAX];
>   static char __runas_username[UT_NAMESIZE];
> @@ -364,7 +366,11 @@ static void sigterm_handler(int sig)
>   void daemon_exit(void)
>   {
>       syslog(LOG_NOTICE, "exiting on signal %d", SIGTERM);
> -     exit(0);
> +
> +     if (__gcov_flush) {
> +             __gcov_flush();
> +     }
> +     _exit(0);
>   }
>
>   /**
>
>

------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-devel mailing list
Opensaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to