summaryrefslogtreecommitdiff
path: root/src/posix/signalHandler.hpp
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2014-06-28 18:59:22 +0000
committerChristian Pointner <equinox@anytun.org>2014-06-28 18:59:22 +0000
commitb35d79b1feee163600305db7dcde9b4a7150f1cc (patch)
tree19ee96cfb175829218a7b7dcde74f963aaed2a2e /src/posix/signalHandler.hpp
parentupdated changelog (diff)
while(1) vs. for(;;)
Diffstat (limited to 'src/posix/signalHandler.hpp')
-rw-r--r--src/posix/signalHandler.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/posix/signalHandler.hpp b/src/posix/signalHandler.hpp
index b63d6ea..dc14f03 100644
--- a/src/posix/signalHandler.hpp
+++ b/src/posix/signalHandler.hpp
@@ -87,7 +87,7 @@ void handleSignal()
struct timespec timeout;
sigset_t signal_set;
int sigNum;
- while(1) {
+ for(;;) {
sigemptyset(&signal_set);
sigaddset(&signal_set, SIGINT);
sigaddset(&signal_set, SIGQUIT);