From 08036f0f3d3a1dbddc6b3aaba976670e80e47cab Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 17 Nov 2000 01:20:03 +0000 Subject: support smbcontrol sending messages to itself (for testing purposes) (This used to be commit 5dfae86dab50fba1890d0ce33fa9d68f12bc0bfa) --- source3/utils/smbcontrol.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/utils/smbcontrol.c') diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c index 815f9fddff..991d1d77d2 100644 --- a/source3/utils/smbcontrol.c +++ b/source3/utils/smbcontrol.c @@ -128,6 +128,8 @@ static BOOL send_message(char *dest, int msg_type, void *buf, int len, BOOL dupl fprintf(stderr,"Can't find pid for nmbd\n"); return False; } + } else if (strequal(dest,"self")) { + pid = getpid(); } else { pid = atoi(dest); if (pid == 0) { -- cgit