ports/66146: ports/mail/spamass-milter should setsid() to detach from controlling terminal

Helge Oldach spamass-milter-may04 at oldach.net
Sat May 1 14:20:11 UTC 2004


>Number:         66146
>Category:       ports
>Synopsis:       ports/mail/spamass-milter should setsid() to detach from controlling terminal
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 01 07:20:10 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Helge Oldach
>Release:        FreeBSD 4.10-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD localhost 4.10-PRERELEASE FreeBSD 4.10-PRERELEASE #1838: Sun Apr 25 00:32:25 CES
T 2004 toor at localhost:/usr/obj/usr/src/sys/GENERIC i386

	
>Description:

spamass-milter currently runs with controlling terminal:

 7108  p3  S      0:00.01 /usr/local/sbin/spamass-milter -p /var/run/spamass-mi
      ^^^^

It should actually call setsid() to detach from it.

>How-To-Repeat:
	
>Fix:


--- spamass-milter.cpp.orig	Sat May  1 15:48:18 2004
+++ spamass-milter.cpp	Sat May  1 15:51:06 2004
@@ -277,6 +277,7 @@
 				exit(errno);
 				break;
 			case 0: /* Child */
+				setsid();
 				break;
 			default: /* Parent */
 				exit(0);
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list