git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move variables declaration to the beginning of the function (old C)
[stg.git]
/
projects
/
stargazer
/
users_impl.cpp
diff --git
a/projects/stargazer/users_impl.cpp
b/projects/stargazer/users_impl.cpp
index 19be5a4108ea134dd01185dcf31b5acfde5aa6bf..61ee90ff7e0ad6379f2f9faed6a3d1c7c4c10d74 100644
(file)
--- a/
projects/stargazer/users_impl.cpp
+++ b/
projects/stargazer/users_impl.cpp
@@
-33,6
+33,7
@@
#endif
#include <pthread.h>
#endif
#include <pthread.h>
+
#include <csignal>
#include <cassert>
#include <algorithm>
#include <csignal>
#include <cassert>
#include <algorithm>
@@
-353,6
+354,10
@@
return 0;
//-----------------------------------------------------------------------------
void * USERS_IMPL::Run(void * d)
{
//-----------------------------------------------------------------------------
void * USERS_IMPL::Run(void * d)
{
+sigset_t signalSet;
+sigfillset(&signalSet);
+pthread_sigmask(SIG_BLOCK, &signalSet, NULL);
+
printfd(__FILE__, "=====================| pid: %d |===================== \n", getpid());
USERS_IMPL * us = (USERS_IMPL*) d;
printfd(__FILE__, "=====================| pid: %d |===================== \n", getpid());
USERS_IMPL * us = (USERS_IMPL*) d;