Handling SIGPIPE will cause deadlock/crash.
Return an error immediatly in case of hard shutdown. MFC after: 3days
This commit is contained in:
parent
75109b48f4
commit
662cf71968
@ -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 @@ pmclog_loop(void *arg)
|
||||
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user