correctness: kill returns -1 on error
Signed-off-by: Max <max@mxzero.net> Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
parent
b9a0719117
commit
daa7da0d0b
@ -54,7 +54,7 @@
|
|||||||
|
|
||||||
#define DMON_ABRT(...) do { \
|
#define DMON_ABRT(...) do { \
|
||||||
DMON_LOG (__VA_ARGS__); \
|
DMON_LOG (__VA_ARGS__); \
|
||||||
if (kill (getpid (), SIGINT) < 0) \
|
if (kill (getpid (), SIGINT) == -1) \
|
||||||
{ \
|
{ \
|
||||||
DMON_LOG (_("Could not stop daemon properly: %s\n"), \
|
DMON_LOG (_("Could not stop daemon properly: %s\n"), \
|
||||||
strerror (errno)); \
|
strerror (errno)); \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user