init.c (261635) | init.c (270111) |
---|---|
1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Donn Seeley at Berkeley Software Design, Inc. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 27 unchanged lines hidden (view full) --- 36 The Regents of the University of California. All rights reserved.\n"; 37#endif /* not lint */ 38 39#ifndef lint 40#if 0 41static char sccsid[] = "@(#)init.c 8.1 (Berkeley) 7/15/93"; 42#endif 43static const char rcsid[] = | 1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Donn Seeley at Berkeley Software Design, Inc. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 27 unchanged lines hidden (view full) --- 36 The Regents of the University of California. All rights reserved.\n"; 37#endif /* not lint */ 38 39#ifndef lint 40#if 0 41static char sccsid[] = "@(#)init.c 8.1 (Berkeley) 7/15/93"; 42#endif 43static const char rcsid[] = |
44 "$FreeBSD: head/sbin/init/init.c 261635 2014-02-08 13:51:15Z jilles $"; | 44 "$FreeBSD: head/sbin/init/init.c 270111 2014-08-17 19:06:26Z neel $"; |
45#endif /* not lint */ 46 47#include <sys/param.h> 48#include <sys/ioctl.h> 49#include <sys/mount.h> 50#include <sys/sysctl.h> 51#include <sys/wait.h> 52#include <sys/stat.h> --- 184 unchanged lines hidden (view full) --- 237 } else 238#endif 239 errx(1, "already running"); 240 } 241 /* 242 * Note that this does NOT open a file... 243 * Does 'init' deserve its own facility number? 244 */ | 45#endif /* not lint */ 46 47#include <sys/param.h> 48#include <sys/ioctl.h> 49#include <sys/mount.h> 50#include <sys/sysctl.h> 51#include <sys/wait.h> 52#include <sys/stat.h> --- 184 unchanged lines hidden (view full) --- 237 } else 238#endif 239 errx(1, "already running"); 240 } 241 /* 242 * Note that this does NOT open a file... 243 * Does 'init' deserve its own facility number? 244 */ |
245 openlog("init", LOG_CONS|LOG_ODELAY, LOG_AUTH); | 245 openlog("init", LOG_CONS, LOG_AUTH); |
246 247 /* 248 * Create an initial session. 249 */ 250 if (setsid() < 0) 251 warning("initial setsid() failed: %m"); 252 253 /* --- 1472 unchanged lines hidden --- | 246 247 /* 248 * Create an initial session. 249 */ 250 if (setsid() < 0) 251 warning("initial setsid() failed: %m"); 252 253 /* --- 1472 unchanged lines hidden --- |