"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/init.c" between
sysvinit-2.98.tar.xz and sysvinit-2.99.tar.xz

About: SysVinit - Linux System V style init programs.

init.c  (sysvinit-2.98.tar.xz):init.c  (sysvinit-2.99.tar.xz)
skipping to change at line 542 skipping to change at line 542
} }
/* /*
* Set the process title. * Set the process title.
*/ */
#ifdef __GNUC__ #ifdef __GNUC__
#ifndef __FreeBSD__ #ifndef __FreeBSD__
__attribute__ ((format (printf, 1, 2))) __attribute__ ((format (printf, 1, 2)))
#endif #endif
#endif #endif
/* This function already exists on FreeBSD. No need to delcare it. */ /* This function already exists on FreeBSD. No need to declare it. */
#ifndef __FreeBSD__ #ifndef __FreeBSD__
static int setproctitle(char *fmt, ...) static int setproctitle(char *fmt, ...)
{ {
va_list ap; va_list ap;
int len; int len;
char buf[256]; char buf[256];
buf[0] = 0; buf[0] = 0;
va_start(ap, fmt); va_start(ap, fmt);
skipping to change at line 737 skipping to change at line 737
raise(SIGSEGV); raise(SIGSEGV);
sigdelset(&mask, SIGSEGV); sigdelset(&mask, SIGSEGV);
sigprocmask(SIG_SETMASK, &mask, NULL); sigprocmask(SIG_SETMASK, &mask, NULL);
do_msleep(SHORT_SLEEP); do_msleep(SHORT_SLEEP);
exit(0); exit(0);
} }
/* /*
* OOPS: segmentation violation! * OOPS: segmentation violation!
* If we have the info, print where it occured. * If we have the info, print where it occurred.
* Then sleep 30 seconds and try to continue. * Then sleep 30 seconds and try to continue.
*/ */
static static
#if defined(STACK_DEBUG) && defined(__linux__) #if defined(STACK_DEBUG) && defined(__linux__)
# ifdef __GNUC__ # ifdef __GNUC__
void segv_handler(int sig __attribute__((unused)), struct sigcontext ctx) void segv_handler(int sig __attribute__((unused)), struct sigcontext ctx)
# else # else
void segv_handler(int sig, struct sigcontext ctx) void segv_handler(int sig, struct sigcontext ctx)
# endif # endif
{ {
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)