Deleted Added
full compact
control.c (217969) control.c (218218)
1/*-
2 * Copyright (c) 2009-2010 The FreeBSD Foundation
3 * All rights reserved.
4 *
5 * This software was developed by Pawel Jakub Dawidek under sponsorship from
6 * the FreeBSD Foundation.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 14 unchanged lines hidden (view full) ---

23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2009-2010 The FreeBSD Foundation
3 * All rights reserved.
4 *
5 * This software was developed by Pawel Jakub Dawidek under sponsorship from
6 * the FreeBSD Foundation.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 14 unchanged lines hidden (view full) ---

23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: head/sbin/hastd/control.c 217969 2011-01-27 19:33:57Z pjd $");
31__FBSDID("$FreeBSD: head/sbin/hastd/control.c 218218 2011-02-03 11:39:49Z pjd $");
32
33#include <sys/types.h>
34#include <sys/wait.h>
35
36#include <assert.h>
37#include <errno.h>
38#include <pthread.h>
39#include <signal.h>

--- 17 unchanged lines hidden (view full) ---

57{
58
59 proto_close(res->hr_ctrl);
60 res->hr_ctrl = NULL;
61 if (res->hr_event != NULL) {
62 proto_close(res->hr_event);
63 res->hr_event = NULL;
64 }
32
33#include <sys/types.h>
34#include <sys/wait.h>
35
36#include <assert.h>
37#include <errno.h>
38#include <pthread.h>
39#include <signal.h>

--- 17 unchanged lines hidden (view full) ---

57{
58
59 proto_close(res->hr_ctrl);
60 res->hr_ctrl = NULL;
61 if (res->hr_event != NULL) {
62 proto_close(res->hr_event);
63 res->hr_event = NULL;
64 }
65 if (res->hr_conn != NULL) {
66 proto_close(res->hr_conn);
67 res->hr_conn = NULL;
68 }
65 res->hr_workerpid = 0;
66}
67
68static void
69control_set_role_common(struct hastd_config *cfg, struct nv *nvout,
70 uint8_t role, struct hast_resource *res, const char *name, unsigned int no)
71{
72 int oldrole;

--- 395 unchanged lines hidden ---
69 res->hr_workerpid = 0;
70}
71
72static void
73control_set_role_common(struct hastd_config *cfg, struct nv *nvout,
74 uint8_t role, struct hast_resource *res, const char *name, unsigned int no)
75{
76 int oldrole;

--- 395 unchanged lines hidden ---