Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54320
b: refs/heads/master
c: 63843c2
h: refs/heads/master
v: v3
  • Loading branch information
Jeff Dike authored and Linus Torvalds committed May 7, 2007
1 parent eab44f0 commit 3d41dda
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 990c55871b655156ffd7787af791be977d946ef6
refs/heads/master: 63843c265fd0e0c7894f713e0db5777560e756ae
1 change: 1 addition & 0 deletions trunk/arch/um/include/os.h
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ extern int raw(int fd);
extern void setup_machinename(char *machine_out);
extern void setup_hostinfo(char *buf, int len);
extern int setjmp_wrapper(void (*proc)(void *, void *), ...);
extern void os_dump_core(void);

/* time.c */
#define BILLION (1000 * 1000 * 1000)
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/um/kernel/um_arch.c
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ static int panic_exit(struct notifier_block *self, unsigned long unused1,
show_regs(&(current->thread.regs));
bust_spinlocks(0);
uml_exitcode = 1;
machine_halt();
os_dump_core();
return 0;
}

Expand Down
6 changes: 6 additions & 0 deletions trunk/arch/um/os-Linux/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,9 @@ int setjmp_wrapper(void (*proc)(void *, void *), ...)
va_end(args);
return n;
}

void os_dump_core(void)
{
signal(SIGSEGV, SIG_DFL);
abort();
}

0 comments on commit 3d41dda

Please sign in to comment.