Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 82545 Details for
Bug 126783
start-stop-daemon can't kill PGIDs
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch file again ssd 1.10.20
ssd.diff (text/plain), 1.68 KB, created by
Peter Hyman
on 2006-03-19 05:59:14 UTC
(
hide
)
Description:
patch file again ssd 1.10.20
Filename:
MIME Type:
Creator:
Peter Hyman
Created:
2006-03-19 05:59:14 UTC
Size:
1.68 KB
patch
obsolete
>--- start-stop-daemon.c.orig 2004-05-10 10:55:31.000000000 -0400 >+++ start-stop-daemon.c 2006-03-19 08:49:58.000000000 -0500 >@@ -130,6 +130,7 @@ > static char *execname = NULL; > static char *startas = NULL; > static const char *pidfile = NULL; >+static int isgrouppidfile = 0; /* -G | --gpidfile command line option */ > static char what_stop[1024]; > static const char *schedule_str = NULL; > static const char *progname = ""; >@@ -254,7 +255,7 @@ > > p = xmalloc(sizeof(*p)); > p->next = *list; >- p->pid = pid; >+ p->pid = (isgrouppidfile==0 ? pid : -pid); > *list = p; > } > >@@ -287,6 +288,7 @@ > "Options (at least one of --exec|--pidfile|--user is required):\n" > " -x|--exec <executable> program to start/check if it is running\n" > " -p|--pidfile <pid-file> pid file to check\n" >+" -G|--gpidfile <pid-file> stop using a GPID\n" > " -c|--chuid <name|uid[:group|gid]>\n" > " change to this user/group before starting process\n" > " -u|--user <username>|<uid> stop processes owned by this user\n" >@@ -469,6 +471,7 @@ > { "startas", 1, NULL, 'a'}, > { "name", 1, NULL, 'n'}, > { "oknodo", 0, NULL, 'o'}, >+ { "gpidfile", 1, NULL, 'G'}, > { "pidfile", 1, NULL, 'p'}, > { "quiet", 0, NULL, 'q'}, > { "signal", 1, NULL, 's'}, >@@ -489,7 +492,7 @@ > int c; > > for (;;) { >- c = getopt_long(argc, argv, "HKSV:a:n:op:qr:s:tu:vx:c:N:bmR:g:d:", >+ c = getopt_long(argc, argv, "HKSV:a:n:oG:p:qr:s:tu:vx:c:N:bmR:g:d:", > longopts, (int *) 0); > if (c == -1) > break; >@@ -515,6 +518,8 @@ > case 'o': /* --oknodo */ > exitnodo = 0; > break; >+ case 'G': >+ isgrouppidfile = 1; /* set flag to negate PID number */ > case 'p': /* --pidfile <pid-file> */ > pidfile = optarg; > break;
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 126783
: 82545