summaryrefslogtreecommitdiff
path: root/source3/utils/msgtest.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-09-13 07:07:17 +0000
committerAndrew Tridgell <tridge@samba.org>2000-09-13 07:07:17 +0000
commit7be9a4fd4c044fa98c434bbdbf0f8229f1101bbb (patch)
tree4fb2514564d1ba64a5e4f358e066e8dbdc2a24cd /source3/utils/msgtest.c
parenta5ac83d2b2fe84d5e940d94269ae6fb61167a809 (diff)
downloadsamba-7be9a4fd4c044fa98c434bbdbf0f8229f1101bbb.tar.gz
samba-7be9a4fd4c044fa98c434bbdbf0f8229f1101bbb.tar.bz2
samba-7be9a4fd4c044fa98c434bbdbf0f8229f1101bbb.zip
first cut at smbcontrol program. It currently allows syntax like:
smbcontrol nmbd debug 7 smbcontrol smbd debug 9 smbcontrol 3278 debug 1 smbcontrol nmbd force-election (This used to be commit 5f91c24636f5d82486f22c10bc55e060f9c518bf)
Diffstat (limited to 'source3/utils/msgtest.c')
-rw-r--r--source3/utils/msgtest.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/source3/utils/msgtest.c b/source3/utils/msgtest.c
index 4821aef80b..858166e697 100644
--- a/source3/utils/msgtest.c
+++ b/source3/utils/msgtest.c
@@ -1,8 +1,7 @@
/*
Unix SMB/Netbios implementation.
- Version 1.9.
- status reporting
- Copyright (C) Andrew Tridgell 1994-1998
+ Version 3.0
+ Copyright (C) Andrew Tridgell 2000
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -17,19 +16,10 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
- Revision History:
-
- 12 aug 96: Erik.Devriendt@te6.siemens.be
- added support for shared memory implementation of share mode locking
-
- 21-Jul-1998: rsharpe@ns.aus.com (Richard Sharpe)
- Added -L (locks only) -S (shares only) flags and code
-
*/
/*
- * This program reports current SMB connections
+ test code for internal messaging
*/
#define NO_SYSLOG
@@ -71,7 +61,7 @@ void pong_message(int msg_type, pid_t src, void *buf, size_t len)
message_send_pid(pid, MSG_PING, NULL, 0);
}
- while (pong_count < n) {
+ while (pong_count < i) {
message_dispatch();
msleep(1);
}