Browse Source
fixes WiringPi/WiringPi#100 (#101)
Replaces a bare wait() with waitpid() to only wait on the just-forked process.
pull/102/head
freddyrios
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
wiringPi/wiringPi.c
|
|
@@ -2049,7 +2049,7 @@ int wiringPiISR (int pin, int mode, void (*function)(void)) |
|
|
|
return wiringPiFailure (WPI_FATAL, "wiringPiISR: Can't find gpio program\n") ; |
|
|
|
} |
|
|
|
else // Parent, wait |
|
|
|
wait (NULL) ; |
|
|
|
waitpid (pid, NULL, 0) ; |
|
|
|
} |
|
|
|
|
|
|
|
// Now pre-open the /sys/class node - but it may already be open if |
|
|
|