Commit 7a56dda
committed
switch-to-configuration-ng: don't block when the lockfile is already locked
When the lockfile is already locked, stc-ng currently blocks without any
message indicating what is going on.
This is very confusing to users, especially because most will not know
about the lockfile.
Since the current call blocks, we actually never end up in the else
branch.
Switching to a non-blocking call, makes sure that we print out an error
and exit in case the lockfile is already locked by another process,
which makes it a lot clearer what's going on and gives the user a clue
as to what to do to unblock the situation.1 parent 4cf8a14 commit 7a56dda
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1037 | 1037 | | |
1038 | 1038 | | |
1039 | 1039 | | |
1040 | | - | |
| 1040 | + | |
1041 | 1041 | | |
1042 | 1042 | | |
1043 | 1043 | | |
| |||
0 commit comments