From ddb9df09eeafbcb291270193274f6674ebee28a1 Mon Sep 17 00:00:00 2001 From: fabient Date: Fri, 26 Mar 2010 14:35:48 +0000 Subject: 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(-) (limited to 'sys') diff --git a/sys/dev/hwpmc/hwpmc_logging.c b/sys/dev/hwpmc/hwpmc_logging.c index 055433d..633c6f9 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); -- cgit v1.1