tStyle fix in sigchld() - surf - customized build of surf, the suckless webkit browser
HTML git clone git://src.adamsgaard.dk/surf
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 7c24c61ab22990ce8dd8158706f11ae7cba77bf0
DIR parent 890ab510ea2a547926e6814fdcd596910c87d614
HTML Author: Quentin Rameau <quinq@fifth.space>
Date: Sun, 22 Nov 2015 12:22:23 +0100
Style fix in sigchld()
Diffstat:
M surf.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
DIR diff --git a/surf.c b/surf.c
t@@ -259,7 +259,8 @@ sigchld(int unused)
{
if (signal(SIGCHLD, sigchld) == SIG_ERR)
die("Can't install SIGCHLD handler");
- while (0 < waitpid(-1, NULL, WNOHANG));
+ while (waitpid(-1, NULL, WNOHANG) > 0)
+ ;
}
char *