]> git.sur5r.net Git - bacula/bacula/commit
Fix bug #1853: bacula-sd dead but pid file exists.
authorMarco van Wieringen <mvw@planets.elm.net>
Wed, 28 Mar 2012 16:33:14 +0000 (18:33 +0200)
committerMarco van Wieringen <mvw@planets.elm.net>
Wed, 28 Mar 2012 16:33:14 +0000 (18:33 +0200)
commitf467196b9eacbef257ff94049351567873d55cd6
tree1282048264f01bc392d289db197757b6d5bb6aae
parent2ccfa4f354a08e616883318dc7db5673fd781f76
Fix bug #1853: bacula-sd dead but pid file exists.

We scanned using a %d pattern into a bool value. On some
platforms (SPARC) this gives a severe SIGBUS e.g. bus error
as the sizeof(bool) on 64 bits is 1 byte and the %d uses an
integer value which is 4 bytes. Its obvious now we know this
problem that its an problem on other platforms too but it
seems only on SPARC it triggers a hardware error by the CPU.

The workaround is to use a temporary variable and set the
bool to either true or false based on the integer value.
bacula/src/stored/job.c