12 lines
320 B
Diff
12 lines
320 B
Diff
--- src/main.c
|
|
+++ src/main.c
|
|
@@ -379,6 +379,8 @@
|
|
}
|
|
/* cleanup on the hangup signal */
|
|
signal(SIGHUP, myexit);
|
|
+ /* and on termination signal */
|
|
+ signal(SIGTERM, myexit);
|
|
|
|
/* if the database path is relative and it can't be created */
|
|
if (reffile[0] != '/' && access(".", WRITE) != 0) {
|