Switch to spawn for running sqitch
As system* seems to break sigaction picking up SIGINT.
This commit is contained in:
parent
6808532338
commit
1dc293c570
1 changed files with 6 additions and 5 deletions
|
|
@ -169,11 +169,12 @@
|
||||||
params)))))
|
params)))))
|
||||||
(simple-format #t "running command: ~A\n"
|
(simple-format #t "running command: ~A\n"
|
||||||
(string-join command))
|
(string-join command))
|
||||||
(unless (zero? (apply system* command))
|
(let ((pid (spawn (%config 'sqitch) command)))
|
||||||
(simple-format
|
(unless (= 0 (status:exit-val (cdr (waitpid pid))))
|
||||||
(current-error-port)
|
(simple-format
|
||||||
"error: sqitch command failed\n")
|
(current-error-port)
|
||||||
(exit 1))))))))
|
"error: sqitch command failed\n")
|
||||||
|
(primitive-exit 1)))))))))
|
||||||
|
|
||||||
(define* (with-postgresql-connection name f #:key (statement-timeout #f))
|
(define* (with-postgresql-connection name f #:key (statement-timeout #f))
|
||||||
(let ((conn (open-postgresql-connection name statement-timeout)))
|
(let ((conn (open-postgresql-connection name statement-timeout)))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue