]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix a race in top non-interactive mode. Use plain sleep(3) call instead
authorKonstantin Belousov <kib@FreeBSD.org>
Mon, 27 Feb 2012 20:52:20 +0000 (20:52 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Mon, 27 Feb 2012 20:52:20 +0000 (20:52 +0000)
commit963a74f13cfe27380aa14da7b69121a00cb7415a
tree2ee7259bcced44a7eba93f40420f4bad66b564ee
parent64ae02c36579bad7d5e682589a0bc1023e359f9d
Fix a race in top non-interactive mode.  Use plain sleep(3) call instead
of arming timer and then pausing.  If SIGALRM is delivered before pause(3)
is entered, top hangs.

Submitted by: Andrey Zonov <andrey zonov org>
MFC after: 1 week
contrib/top/top.c