summaryrefslogtreecommitdiffstats
path: root/usr.bin/rcs/rcsprog.c
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2005-12-24 14:11:13 +0000
committerclaudio <claudio@openbsd.org>2005-12-24 14:11:13 +0000
commit97f91faff86e4069f158c7787ab13058eb5a38d3 (patch)
treef75855365419e94174a13b2ce534ef12d96f8fa6 /usr.bin/rcs/rcsprog.c
parentDon't use bzero(&pfd, sizeof(pfd)); pfd is an array so bzero(pfd, sizeof(pfd)); (diff)
downloadwireguard-openbsd-97f91faff86e4069f158c7787ab13058eb5a38d3.tar.xz
wireguard-openbsd-97f91faff86e4069f158c7787ab13058eb5a38d3.zip
bzero the pfd array before setting it up and calling poll because on error
(e.g. EINTR) poll() will not update the pfd array (copyout) and so the old revents are used and results in a blocking parent process. OK dlg@
Diffstat (limited to 'usr.bin/rcs/rcsprog.c')
0 files changed, 0 insertions, 0 deletions