Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 301872 Details for
Bug 441737
[fence] fence_node broken in RHEL5.2
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patchy goodness. Tested against fence_node from 2.0.83-2 package
rhel5-fence_node.patch (text/plain), 1.26 KB, created by
Lon Hohberger
on 2008-04-09 18:31:43 UTC
(
hide
)
Description:
Patchy goodness. Tested against fence_node from 2.0.83-2 package
Filename:
MIME Type:
Creator:
Lon Hohberger
Created:
2008-04-09 18:31:43 UTC
Size:
1.26 KB
patch
obsolete
>diff --git a/fence/fence_node/fence_node.c b/fence/fence_node/fence_node.c >index 7ee2799..1a344b9 100644 >--- a/fence/fence_node/fence_node.c >+++ b/fence/fence_node/fence_node.c >@@ -34,7 +34,7 @@ while (0) > static char *prog_name; > static int force; > >-int dispatch_fence_agent(int cd, char *victim); >+int dispatch_fence_agent(char *victim, int force); > > static void print_usage(void) > { >@@ -52,7 +52,7 @@ static void print_usage(void) > > int main(int argc, char *argv[]) > { >- int cont = 1, optchar, error, cd; >+ int cont = 1, optchar, error; > char *victim = NULL; > > prog_name = argv[0]; >@@ -104,28 +104,15 @@ int main(int argc, char *argv[]) > if (!victim) > die("no node name specified"); > >- if (force) >- cd = ccs_force_connect(NULL, 0); >- else >- cd = ccs_connect(); >- > openlog("fence_node", LOG_PID, LOG_USER); > >- if (cd < 0) { >- syslog(LOG_ERR, "cannot connect to ccs %d\n", cd); >- goto fail; >- } >- >- error = dispatch_fence_agent(cd, victim); >+ error = dispatch_fence_agent(victim, force); > if (error) >- goto fail_ccs; >+ goto fail; > > syslog(LOG_NOTICE, "Fence of \"%s\" was successful\n", victim); >- ccs_disconnect(cd); > exit(EXIT_SUCCESS); > >- fail_ccs: >- ccs_disconnect(cd); > fail: > syslog(LOG_ERR, "Fence of \"%s\" was unsuccessful\n", victim); > exit(EXIT_FAILURE);
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 441737
: 301872