| 55 | } |
| 56 | |
| 57 | void blockSignal(int sig) { |
| 58 | sigset_t set; |
| 59 | sigemptyset(&set); |
| 60 | sigaddset(&set, sig); |
| 61 | if (pthread_sigmask(SIG_BLOCK, &set, NULL) != 0) { |
| 62 | perror("pthread_sigmask"); |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | // When graph_schema is not specified, codegen proxy will use the running graph |
| 67 | // schema in graph_db_service |