Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Currently, if two instances of process-compose are started with the same unix socket, the first instance is orphaned without any way to shut it down: ``` > process-compose up -u /tmp/sock --tui=false >/dev/null 2>&1 & [1] 52138 > process-compose up -u /tmp/sock --tui=false >/dev/null 2>&1 & [2] 52217 > process-compose down -u /tmp/sock [2] + done process-compose up -u /tmp/sock --tui=false > /dev/null 2>&1 > process-compose down -u /tmp/sock 24-08-07 11:59:19.436 FTL failed to stop project error="Post \"http://unix/project/stop/\": dial unix /tmp/sock: connect: no such file or directory" > pgrep process-compose 52138 ``` Instead of unconditionally removing an existing unix socket, error if it is already in use.
- Loading branch information