mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-05 10:48:03 -04:00
26 lines
941 B
Plaintext
26 lines
941 B
Plaintext
--- Source/kwsys/ProcessUNIX.c.orig Sun Oct 16 18:31:44 2016
|
|
+++ Source/kwsys/ProcessUNIX.c Sun Oct 16 18:38:28 2016
|
|
@@ -3034,10 +3034,10 @@
|
|
/* Re-Install our handler. Repeat call until it is not interrupted. */
|
|
{
|
|
struct sigaction newSigAction;
|
|
- struct sigaction &oldSigAction;
|
|
+ struct sigaction *oldSigAction;
|
|
memset(&newSigAction, 0, sizeof(struct sigaction));
|
|
- newSigChldAction.sa_handler = kwsysProcessesSignalHandler;
|
|
- newSigChldAction.sa_flags = SA_NOCLDSTOP;
|
|
+ newSigAction.sa_handler = kwsysProcessesSignalHandler;
|
|
+ newSigAction.sa_flags = SA_NOCLDSTOP;
|
|
sigemptyset(&newSigAction.sa_mask);
|
|
switch(signum)
|
|
{
|
|
@@ -3048,7 +3048,7 @@
|
|
case SIGTERM:
|
|
sigaddset(&newSigAction.sa_mask, SIGINT);
|
|
oldSigAction = &kwsysProcessesOldSigTermAction; break;
|
|
- default: return 0;
|
|
+ default: return;
|
|
}
|
|
while((sigaction(signum, &newSigAction,
|
|
oldSigAction) < 0) &&
|