Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 176629 Details for
Bug 252621
[OpenRC] start-stop-daemon --stop --retry : broken in 0.4.0 and 0.4.1 versions?
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
openrc-0.4.1-ssd-fix-stop-signals-on-retry.diff
openrc-0.4.1-ssd-fix-stop-signals-on-retry.diff (text/plain), 1.28 KB, created by
Lars Wendler (Polynomial-C) (RETIRED)
on 2008-12-28 17:14:40 UTC
(
hide
)
Description:
openrc-0.4.1-ssd-fix-stop-signals-on-retry.diff
Filename:
MIME Type:
Creator:
Lars Wendler (Polynomial-C) (RETIRED)
Created:
2008-12-28 17:14:40 UTC
Size:
1.28 KB
patch
obsolete
>Index: trunk/src/rc/start-stop-daemon.c >=================================================================== >--- trunk/src/rc/start-stop-daemon.c (revision 1453) >+++ trunk/src/rc/start-stop-daemon.c (revision 1460) >@@ -627,4 +627,5 @@ > char *name = NULL; > char *pidfile = NULL; >+ char *retry = NULL; > int sig = 0; > int nicelevel = 0; >@@ -695,5 +696,5 @@ > > case 'R': /* --retry <schedule>|<timeout> */ >- parse_schedule(optarg, sig); >+ retry = optarg; > break; > >@@ -854,5 +855,7 @@ > *--argv = exec; > >- if (stop || sig) { >+ if (stop || sig != 0) { >+ if (sig == 0) >+ sig = SIGTERM; > if (!*argv && !pidfile && !name && !uid) > eerrorx("%s: --stop needs --exec, --pidfile," >@@ -877,4 +880,5 @@ > " with --background", applet); > } >+ > /* Expand ~ */ > if (ch_dir && *ch_dir == '~') >@@ -956,14 +960,14 @@ > > if (stop || sig) { >- if (!sig) >+ if (sig == 0) > sig = SIGTERM; > if (!stop) > oknodo = true; >- if (!TAILQ_FIRST(&schedule)) { >- if (test || oknodo) >- parse_schedule("0", sig); >- else >- parse_schedule(NULL, sig); >- } >+ if (retry) >+ parse_schedule(retry, sig); >+ else if (test || oknodo) >+ parse_schedule("0", sig); >+ else >+ parse_schedule(NULL, sig); > i = run_stop_schedule(exec, (const char *const *)margv, > pidfile, uid, quiet, verbose, test);
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 252621
: 176629