From 662cf719689e01e222eb7cb576e2948ae42678a5 Mon Sep 17 00:00:00 2001 From: Fabien Thomas Date: Fri, 26 Mar 2010 14:35:48 +0000 Subject: [PATCH] Handling SIGPIPE will cause deadlock/crash. Return an error immediatly in case of hard shutdown. MFC after: 3days --- sys/dev/hwpmc/hwpmc_logging.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sys/dev/hwpmc/hwpmc_logging.c b/sys/dev/hwpmc/hwpmc_logging.c index 055433da4b34..633c6f953b6e 100644 --- a/sys/dev/hwpmc/hwpmc_logging.c +++ b/sys/dev/hwpmc/hwpmc_logging.c @@ -298,7 +298,6 @@ pmclog_loop(void *arg) mtx_unlock(&pmc_kthread_mtx); -sigpipe_retry: /* process the request */ PMCDBG(LOG,WRI,2, "po=%p base=%p ptr=%p", po, lb->plb_base, lb->plb_ptr); @@ -322,9 +321,6 @@ sigpipe_retry: if (error) { /* XXX some errors are recoverable */ - if (error == EPIPE) - goto sigpipe_retry; - /* send a SIGIO to the owner and exit */ PROC_LOCK(p); psignal(p, SIGIO);