simple_prompt() hangs because SIGINT handler was overridden
za-arthur opened this issue · comments
pg_repack overrides SIGINT handler:
Line 1615 in 81f26d1
Because of this it isn't possible to interrupt password prompt with CTRL+C. You need to interrupt it you need to enter some or empty password.
If you do the following steps then pg_repack crashes:
- Run pg_repack
- Press CTRL+C when pg_repack waits for a password
- Enter any password
pg_repack -t repack_table -d postgres -U repack_user
Password:
FATAL: interrupted
[1] 36015 IOT instruction (core dumped) pg_repack -t repack_table -d postgres -U repack_user