* Check to see if a log rotation request has arrived. Should be * called by postmaster after receiving SIGUSR1. */
| 2253 | * called by postmaster after receiving SIGUSR1. |
| 2254 | */ |
| 2255 | bool |
| 2256 | CheckLogrotateSignal(void) |
| 2257 | { |
| 2258 | struct stat stat_buf; |
| 2259 | |
| 2260 | if (stat(LOGROTATE_SIGNAL_FILE, &stat_buf) == 0) |
| 2261 | return true; |
| 2262 | |
| 2263 | return false; |
| 2264 | } |
| 2265 | |
| 2266 | /* |
| 2267 | * Remove the file signaling a log rotation request. |