Lines 1-6
Link Here
|
1 |
--- src/main.c.orig Sat Sep 30 01:13:00 2006 |
1 |
--- src/main.c.orig 2006-09-30 03:13:00.000000000 -0500 |
2 |
+++ src/main.c Thu Oct 5 15:21:30 2006 |
2 |
+++ src/main.c 2008-01-18 15:01:59.000000000 -0600 |
3 |
@@ -359,7 +359,7 @@ cscope: TMPDIR to a valid directory\n"); |
3 |
@@ -359,7 +359,7 @@ |
4 |
/* create the temporary file names */ |
4 |
/* create the temporary file names */ |
5 |
orig_umask = umask(S_IRWXG|S_IRWXO); |
5 |
orig_umask = umask(S_IRWXG|S_IRWXO); |
6 |
pid = getpid(); |
6 |
pid = getpid(); |
Lines 9-15
Link Here
|
9 |
if(mkdir(tempdirpv,S_IRWXU)) { |
9 |
if(mkdir(tempdirpv,S_IRWXU)) { |
10 |
fprintf(stderr, "\ |
10 |
fprintf(stderr, "\ |
11 |
cscope: Could not create private temp dir %s\n", |
11 |
cscope: Could not create private temp dir %s\n", |
12 |
@@ -368,8 +368,13 @@ cscope: Could not create private temp di |
12 |
@@ -368,8 +368,13 @@ |
13 |
} |
13 |
} |
14 |
umask(orig_umask); |
14 |
umask(orig_umask); |
15 |
|
15 |
|
Lines 25-27
Link Here
|
25 |
|
25 |
|
26 |
/* if running in the foreground */ |
26 |
/* if running in the foreground */ |
27 |
if (signal(SIGINT, SIG_IGN) != SIG_IGN) { |
27 |
if (signal(SIGINT, SIG_IGN) != SIG_IGN) { |
|
|
28 |
@@ -379,6 +384,7 @@ |
29 |
} |
30 |
/* cleanup on the hangup signal */ |
31 |
signal(SIGHUP, myexit); |
32 |
+ signal(SIGTERM, myexit); |
33 |
|
34 |
/* if the database path is relative and it can't be created */ |
35 |
if (reffile[0] != '/' && access(".", WRITE) != 0) { |