diff options
| author | Patrick Williams <iawillia@us.ibm.com> | 2013-11-15 15:52:29 -0600 |
|---|---|---|
| committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-11-15 16:50:03 -0600 |
| commit | 0aa07166a88d364770410dce63437b23217ef978 (patch) | |
| tree | 6d477830af02810c69afa2307150924b45f13e5f /src/usr/trace/daemon | |
| parent | 609e5701ff5318d97d548d47057a48ec5c32e035 (diff) | |
| download | talos-hostboot-0aa07166a88d364770410dce63437b23217ef978.tar.gz talos-hostboot-0aa07166a88d364770410dce63437b23217ef978.zip | |
Race condition in trace leads to double-delete.
Change-Id: I4fc4acc8f84de151d1d9600802539c18c6aa7851
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/7277
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: Thi N. Tran <thi@us.ibm.com>
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/trace/daemon')
| -rw-r--r-- | src/usr/trace/daemon/daemon.C | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/usr/trace/daemon/daemon.C b/src/usr/trace/daemon/daemon.C index 6351381c0..51071ca39 100644 --- a/src/usr/trace/daemon/daemon.C +++ b/src/usr/trace/daemon/daemon.C @@ -35,6 +35,7 @@ #include <initservice/initserviceif.H> #include <sys/msg.h> +#include <sys/task.h> #include <kernel/console.H> #include <util/align.H> @@ -76,6 +77,9 @@ namespace TRACEDAEMON void Daemon::execute() { + // Mark as an independent daemon so if it crashes we terminate. + task_detach(); + // Mark the daemon as started in the interface. iv_service = Service::getGlobalInstance(); iv_service->iv_daemon->start(); |

