Deleted Added
full compact
primary.c (218192) primary.c (218214)
1/*-
2 * Copyright (c) 2009 The FreeBSD Foundation
3 * Copyright (c) 2010 Pawel Jakub Dawidek <pjd@FreeBSD.org>
4 * All rights reserved.
5 *
6 * This software was developed by Pawel Jakub Dawidek under sponsorship from
7 * the FreeBSD Foundation.
8 *

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

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

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

24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 * SUCH DAMAGE.
29 */
30
31#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: head/sbin/hastd/primary.c 218192 2011-02-02 15:42:00Z pjd $");
32__FBSDID("$FreeBSD: head/sbin/hastd/primary.c 218214 2011-02-03 10:37:44Z pjd $");
33
34#include <sys/types.h>
35#include <sys/time.h>
36#include <sys/bio.h>
37#include <sys/disk.h>
38#include <sys/refcount.h>
39#include <sys/stat.h>
40

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

845 init_local(res);
846 init_ggate(res);
847 init_environment(res);
848
849 if (drop_privs() != 0) {
850 cleanup(res);
851 exit(EX_CONFIG);
852 }
33
34#include <sys/types.h>
35#include <sys/time.h>
36#include <sys/bio.h>
37#include <sys/disk.h>
38#include <sys/refcount.h>
39#include <sys/stat.h>
40

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

845 init_local(res);
846 init_ggate(res);
847 init_environment(res);
848
849 if (drop_privs() != 0) {
850 cleanup(res);
851 exit(EX_CONFIG);
852 }
853 pjdlog_info("Privileges successfully dropped.");
853
854 /*
855 * Create the guard thread first, so we can handle signals from the
856 * very begining.
857 */
858 error = pthread_create(&td, NULL, guard_thread, res);
859 PJDLOG_ASSERT(error == 0);
860 /*

--- 1200 unchanged lines hidden ---
854
855 /*
856 * Create the guard thread first, so we can handle signals from the
857 * very begining.
858 */
859 error = pthread_create(&td, NULL, guard_thread, res);
860 PJDLOG_ASSERT(error == 0);
861 /*

--- 1200 unchanged lines hidden ---