diff options
author | Christian Pointner <equinox@anytun.org> | 2014-06-28 18:59:22 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2014-06-28 18:59:22 +0000 |
commit | b35d79b1feee163600305db7dcde9b4a7150f1cc (patch) | |
tree | 19ee96cfb175829218a7b7dcde74f963aaed2a2e /src/posix/signalHandler.hpp | |
parent | updated changelog (diff) |
while(1) vs. for(;;)
Diffstat (limited to 'src/posix/signalHandler.hpp')
-rw-r--r-- | src/posix/signalHandler.hpp | 2 |
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); |