瀏覽代碼

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
父節點
當前提交
22fac72e1a
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      wiringPi/wiringPi.c

+ 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


Loading…
取消
儲存