summaryrefslogtreecommitdiffstats
path: root/lib/util/fault.c
Commit message (Collapse)AuthorAgeFilesLines
* lib/util: Clean up includes for fault.cMartin Schwenke2014-10-041-1/+7
| | | | | | | Add fault.h. Allows standalone compiles without external includes.h. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Jeremy Allison <jra@samba.org>
* lib/util: declare smb_panic_default() as _NORETURN_Stefan Metzmacher2014-04-021-0/+1
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* fault.c: Fix typo in comment.Karolin Seeger2013-02-181-1/+1
| | | | | | redundent -> redundant Signed-off-by: Karolin Seeger <kseeger@samba.org>
* Start to add truncate checks on all uses of strlcpy(). Reading lwnJeremy Allison2012-03-291-15/+15
| | | | | | | has it's uses :-). Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Mar 29 20:48:15 CEST 2012 on sn-devel-104
* lib/util: Remove obsolete sys_getpid() and sys_fork().Jelmer Vernooij2012-03-241-1/+1
| | | | | | | | | The performance of these is minimal (these days) and they can return invalid results when used as part of applications that do not use sys_fork(). Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Mar 24 21:55:41 CET 2012 on sn-devel-104
* util: Add --disable-fault-handling.Ira Cooper2012-03-151-0/+2
| | | | | | On some platforms you can not debug coredumps after the default signal handler gets done dumping core. This allows waf to have an option to disable our default signal handler.
* lib/util: make sure panic action can attach a debugger on ubuntu (>=10.10)Stefan Metzmacher2011-10-041-0/+7
| | | | | | | | By default user processes can't attach a debugger to a process. So explicitly allow that for all child processes, before calling the panic action script. metze
* s4-fault: changed to use %d for PID, instead of %PID%Andrew Tridgell2011-07-131-1/+1
| | | | | | this matches the s3 behaviour Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* Fix simple uses of safe_strcpy -> strlcpy. Easy ones where we just remove -1.Jeremy Allison2011-05-041-1/+1
|
* fault: get fault.c ready for use by s4Andrew Tridgell2011-03-231-293/+67
| | | | | this moves the s3 specific dumpcore code into source3/lib/dumpcore.c, and uses a function pointer to setup which smb_panic call to use
* fault: moved s3 fault.c to top levelAndrew Tridgell2011-03-231-0/+380
|
* fault: rename fault.c to fault_s4.cAndrew Tridgell2011-03-231-236/+0
| | | | this is in preparation for merging the s3 fault code into common
* lib/util/fault.c - "call_backtrace" - no need to have "backtrace_size" as size_tMatthias Dieter Wallnöfer2011-03-101-1/+1
| | | | The function "backtrace" returns an "int".
* s4-dns: disable segfault handling in dlz_bind9Andrew Tridgell2010-12-211-2/+12
| | | | we don't want bind9 calling the Samba segv handler
* lib/util/fault.c - fix "pid_t" printf warning on SolarisMatthias Dieter Wallnöfer2010-12-061-1/+1
| | | | | According to "http://www.ibm.com/developerworks/linux/library/l-solar/" it's generally a 32bit "int" - therefore this cast should fit.
* libutil: Remove obsolete signal type cast.Andreas Schneider2010-02-231-5/+5
|
* Move lib/util from source4 to top-level libutil.Jelmer Vernooij2008-10-111-0/+226
Conflicts: source4/Makefile