Unverified Commit de7d5f45 authored by Shubham Dhama's avatar Shubham Dhama Committed by GitHub
Browse files

Create new process group for pgcopydb initialization. (#211)

Previously, when `pgcopydb` encountered a FATAL error and called
`copydb_fatal_exit`, any wrapper processes around `pgcopydb` would also get
terminated due to the `if (kill(0, SIGTERM) == -1)` statement. To fix this
issue, a new process group is now created for `pgcopydb` during
initialization. This ensures that only the `pgcopydb` process will be
terminated in case of a FATAL error, leaving the wrapper processes intact.
parent 6cd8a6b0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment