Changeset 106779 in vbox
- Timestamp:
- Oct 29, 2024 10:10:06 PM (4 months ago)
- svn:sync-xref-src-repo-rev:
- 165670
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/init.cpp
r106061 r106779 526 526 #endif /* IPRT_USE_SIG_CHILD_DUMMY */ 527 527 528 #ifndef RT_OS_WINDOWS 529 /* 530 * Ignore SIGPIPE if it is configured as SIG_DFL. 531 */ 532 if (!(fFlags & RTR3INIT_FLAGS_UNOBTRUSIVE)) 533 { 534 struct sigaction SigActOld; 535 rc = sigaction(SIGPIPE, 0, &SigActOld); 536 AssertMsg(rc == 0, ("%d/%d\n", rc, errno)); 537 if ( rc == 0 538 && !(SigActOld.sa_flags & SA_SIGINFO) 539 && SigActOld.sa_handler == SIG_DFL) 540 { 541 struct sigaction SigAct; 542 memset(&SigAct, 0, sizeof(SigAct)); 543 SigAct.sa_handler = SIG_IGN; 544 rc = sigaction(SIGPIPE, &SigAct, &SigActOld); 545 AssertMsg(rc == 0, ("%d/%d\n", rc, errno)); 546 Assert(SigActOld.sa_handler == SIG_DFL || rc != 0); 547 } 548 } 549 #endif 550 528 551 #ifdef IPRT_WITH_ALIGNMENT_CHECKS 529 552 /*
Note:
See TracChangeset
for help on using the changeset viewer.