Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadim Sadokhov committed Jul 20, 2023
1 parent f94b43e commit c432afe
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions server/php-master.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,6 @@ WorkerType start_master() {
}

int run_worker(WorkerType worker_type) {
kprintf("master create %s\n", worker_type == WorkerType::general_worker ? "general worker" : "job worker");
dl_block_all_signals();

assert (vk::singleton<WorkersControl>::get().get_all_alive() < WorkersControl::max_workers_count);
Expand Down Expand Up @@ -651,8 +650,7 @@ int run_worker(WorkerType worker_type) {
}

dl_restore_signal_mask();

kprintf("new worker launched [pid = %d]\n", (int)new_pid);
kprintf("master create %s [pod = %d]\n", worker_type == WorkerType::general_worker ? "general worker" : "job worker", (int)new_pid);

worker_info_t *worker = workers[vk::singleton<WorkersControl>::get().get_all_alive() - 1] = new_worker();
worker->pid = new_pid;
Expand Down

0 comments on commit c432afe

Please sign in to comment.