summaryrefslogtreecommitdiffstats
path: root/usr.bin/rcs/rcsprog.c
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2006-03-08 11:22:02 +0000
committerespie <espie@openbsd.org>2006-03-08 11:22:02 +0000
commit822cc53a984ec986bb68d6dc97398643ba6cb583 (patch)
tree79d78d9bbc36230d1bc050ef1a0c68f217aa750d /usr.bin/rcs/rcsprog.c
parenttweak the debug macros a bit (diff)
downloadwireguard-openbsd-822cc53a984ec986bb68d6dc97398643ba6cb583.tar.xz
wireguard-openbsd-822cc53a984ec986bb68d6dc97398643ba6cb583.zip
fix race condition in SCP for real.
We can't control a grand-child death through gzip, so stop spawning grand-children: create two children connected by hand through a pipe, and when we close gzip, explicitly wait for the second child to die as well. This avoids race conditions between sigpipe and sigusr1. (and as usual, the resulting code is easier to follow once you get through the pipe/fork). Thanks theo for the comment. ;-)
Diffstat (limited to 'usr.bin/rcs/rcsprog.c')
0 files changed, 0 insertions, 0 deletions