[hackers] [surf] Style fix in sigchld() || Quentin Rameau

From: <git_AT_suckless.org>
Date: Sun, 22 Nov 2015 13:16:13 +0100 (CET)

commit 7c24c61ab22990ce8dd8158706f11ae7cba77bf0
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Sun Nov 22 12:22:23 2015 +0100
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Sun Nov 22 12:22:23 2015 +0100

    Style fix in sigchld()

diff --git a/surf.c b/surf.c
index d43535d..5043d33 100644
--- a/surf.c
+++ b/surf.c
_AT_@ -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 *
Received on Sun Nov 22 2015 - 13:16:13 CET

This archive was generated by hypermail 2.3.0 : Sun Nov 22 2015 - 13:24:11 CET