summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2005-11-16 06:54:39 +0000
committerVolker Lendecke <vlendec@samba.org>2005-11-16 06:54:39 +0000
commitc032e97eab4042a1cf25599dfebad9ac55075308 (patch)
treeb981c5fbe47e6cddfe6a3eae4bcf871d5b9ec04c /source
parentdf978c09a73706de73f2d9fdabbc7d92da1eef1a (diff)
downloadsamba-c032e97eab4042a1cf25599dfebad9ac55075308.tar.gz
samba-c032e97eab4042a1cf25599dfebad9ac55075308.tar.xz
samba-c032e97eab4042a1cf25599dfebad9ac55075308.zip
r11739: As per Jeremy's request, add a panic action for developers. Now configure.in
needs something along the lines of if [ $LOGNAME == "jht" ] then CFLAGS="$CFLAGS -DDEVELOPER" fi But that goes a bit far I think.... :-))) Volker
Diffstat (limited to 'source')
-rw-r--r--source/param/loadparm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/param/loadparm.c b/source/param/loadparm.c
index 5e49a562253..f45d8cf9527 100644
--- a/source/param/loadparm.c
+++ b/source/param/loadparm.c
@@ -1424,6 +1424,9 @@ static void init_globals(void)
slprintf(s, sizeof(s) - 1, "%d.%d", DEFAULT_MAJOR_VERSION,
DEFAULT_MINOR_VERSION);
string_set(&Globals.szAnnounceVersion, s);
+#ifdef DEVELOPER
+ string_set(&Globals.szPanicAction, "/bin/sleep 999999999");
+#endif
pstrcpy(user_socket_options, DEFAULT_SOCKET_OPTIONS);