瀏覽代碼
fixes WiringPi/WiringPi#100 (#101)
Replaces a bare wait() with waitpid() to only wait on the just-forked process.
pull/102/head
freddyrios
3 年之前
committed by
GitHub
沒有發現已知的金鑰在資料庫的簽署中
GPG Key ID: 4AEE18F83AFDEB23
共有
1 個文件被更改,包括
1 次插入 和
1 次删除
-
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 |
|
|
|