]> git.tuebingen.mpg.de Git - dss.git/commitdiff
run: Improve error message if dss is already running.
authorAndre Noll <maan@tuebingen.mpg.de>
Fri, 17 Jun 2016 07:29:12 +0000 (09:29 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Thu, 13 Jul 2017 20:54:03 +0000 (22:54 +0200)
The current error message, "child terminated unexpectedly", is not
very comprehensive.

The most likely reason for the child to terminate is that it could not
obtain the semaphore lock because another dss process is running. This
commit adds a test to com_run() that check this condition in the
parent before the child process is born. This way, if another process
is holding the lock, we can fail with a nice error message that also
includes the pid of the process that holds the lock.


No differences found