change global_optyap_data macros to GLOBAL_.
This commit is contained in:
10
C/init.c
10
C/init.c
@@ -1176,7 +1176,7 @@ void init_yapor_workers(void) {
|
||||
return;
|
||||
#endif /* YAPOR_THREADS */
|
||||
#ifdef YAPOR_COW
|
||||
if (Yap_number_workers > 1) {
|
||||
if (GLOBAL_number_workers > 1) {
|
||||
int son;
|
||||
son = fork();
|
||||
if (son == -1)
|
||||
@@ -1185,7 +1185,7 @@ void init_yapor_workers(void) {
|
||||
/* I am the father, I must stay here and wait for my children to all die */
|
||||
struct sigaction sigact;
|
||||
|
||||
Yap_master_worker = getpid();
|
||||
GLOBAL_master_worker = getpid();
|
||||
sigact.sa_handler = SIG_DFL;
|
||||
sigemptyset(&sigact.sa_mask);
|
||||
sigact.sa_flags = SA_RESTART;
|
||||
@@ -1193,10 +1193,10 @@ void init_yapor_workers(void) {
|
||||
pause();
|
||||
exit(0);
|
||||
} else
|
||||
Yap_worker_pid(0) = getpid();
|
||||
GLOBAL_worker_pid(0) = getpid();
|
||||
}
|
||||
#endif /* YAPOR_COW */
|
||||
for (proc = 1; proc < Yap_number_workers; proc++) {
|
||||
for (proc = 1; proc < GLOBAL_number_workers; proc++) {
|
||||
int son;
|
||||
son = fork();
|
||||
if (son == -1)
|
||||
@@ -1209,7 +1209,7 @@ void init_yapor_workers(void) {
|
||||
InitWorker(worker_id);
|
||||
break;
|
||||
} else
|
||||
Yap_worker_pid(proc) = son;
|
||||
GLOBAL_worker_pid(proc) = son;
|
||||
}
|
||||
}
|
||||
#endif /* YAPOR */
|
||||
|
Reference in New Issue
Block a user