FreeBSD Bugzilla – Attachment 83891 Details for
Bug 119783
[PATCH] devel/cscope: cleanup of temp directories upon exit
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
cscope-15.6.patch
cscope-15.6.patch (text/plain), 2.11 KB, created by
Sean Farley
on 2008-01-18 22:20:00 UTC
(
hide
)
Description:
cscope-15.6.patch
Filename:
MIME Type:
Creator:
Sean Farley
Created:
2008-01-18 22:20:00 UTC
Size:
2.11 KB
patch
obsolete
>diff -ruN --exclude=CVS /usr/ports/devel/cscope.orig/Makefile /usr/ports/devel/cscope/Makefile >--- /usr/ports/devel/cscope.orig/Makefile 2006-11-01 05:23:29.000000000 -0600 >+++ /usr/ports/devel/cscope/Makefile 2008-01-18 16:04:03.000000000 -0600 >@@ -8,7 +8,6 @@ > > PORTNAME= cscope > PORTVERSION= 15.6 >-PORTREVISION= 0 > CATEGORIES= devel > MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} > MASTER_SITE_SUBDIR= ${PORTNAME} >@@ -19,6 +18,8 @@ > GNU_CONFIGURE= yes > CONFIGURE_ARGS= --with-yacc > >+PLIST_FILES= bin/cscope \ >+ bin/ocs > MAN1= cscope.1 > > .include <bsd.port.mk> >diff -ruN --exclude=CVS /usr/ports/devel/cscope.orig/files/patch-main.c /usr/ports/devel/cscope/files/patch-main.c >--- /usr/ports/devel/cscope.orig/files/patch-main.c 2006-10-05 17:23:33.000000000 -0500 >+++ /usr/ports/devel/cscope/files/patch-main.c 2008-01-18 15:03:36.000000000 -0600 >@@ -1,6 +1,6 @@ >---- src/main.c.orig Sat Sep 30 01:13:00 2006 >-+++ src/main.c Thu Oct 5 15:21:30 2006 >-@@ -359,7 +359,7 @@ cscope: TMPDIR to a valid directory\n"); >+--- src/main.c.orig 2006-09-30 03:13:00.000000000 -0500 >++++ src/main.c 2008-01-18 15:01:59.000000000 -0600 >+@@ -359,7 +359,7 @@ > /* create the temporary file names */ > orig_umask = umask(S_IRWXG|S_IRWXO); > pid = getpid(); >@@ -9,7 +9,7 @@ > if(mkdir(tempdirpv,S_IRWXU)) { > fprintf(stderr, "\ > cscope: Could not create private temp dir %s\n", >-@@ -368,8 +368,13 @@ cscope: Could not create private temp di >+@@ -368,8 +368,13 @@ > } > umask(orig_umask); > >@@ -25,3 +25,11 @@ > > /* if running in the foreground */ > if (signal(SIGINT, SIG_IGN) != SIG_IGN) { >+@@ -379,6 +384,7 @@ >+ } >+ /* cleanup on the hangup signal */ >+ signal(SIGHUP, myexit); >++ signal(SIGTERM, myexit); >+ >+ /* if the database path is relative and it can't be created */ >+ if (reffile[0] != '/' && access(".", WRITE) != 0) { >diff -ruN --exclude=CVS /usr/ports/devel/cscope.orig/pkg-plist /usr/ports/devel/cscope/pkg-plist >--- /usr/ports/devel/cscope.orig/pkg-plist 2001-07-07 00:09:55.000000000 -0500 >+++ /usr/ports/devel/cscope/pkg-plist 1969-12-31 18:00:00.000000000 -0600 >@@ -1,2 +0,0 @@ >-bin/cscope >-bin/ocs
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 119783
: 83891