Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Replaces a bare wait() with waitpid() to only wait on the just-forked process.
  • Loading branch information
freddyrios authored Feb 24, 2021
1 parent e9821ab commit 22fac72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wiringPi/wiringPi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 22fac72

Please sign in to comment.