diff options
author | fabient <fabient@FreeBSD.org> | 2010-03-26 14:35:48 +0000 |
---|---|---|
committer | fabient <fabient@FreeBSD.org> | 2010-03-26 14:35:48 +0000 |
commit | ddb9df09eeafbcb291270193274f6674ebee28a1 (patch) | |
tree | 5f958c4b05d2c2a06b2bced6c73e53a21ac0f094 /sys | |
parent | b1b316fa5b9246badf6d6a4d669f39b398b000f0 (diff) | |
download | FreeBSD-src-ddb9df09eeafbcb291270193274f6674ebee28a1.zip FreeBSD-src-ddb9df09eeafbcb291270193274f6674ebee28a1.tar.gz |
Handling SIGPIPE will cause deadlock/crash.
Return an error immediatly in case of hard shutdown.
MFC after: 3days
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/hwpmc/hwpmc_logging.c | 4 |
1 files changed, 0 insertions, 4 deletions
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); |