diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-11-17 01:20:03 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-11-17 01:20:03 +0000 |
commit | 08036f0f3d3a1dbddc6b3aaba976670e80e47cab (patch) | |
tree | d0b2a3a31c1e4b1df5c6f1e25dc70f1465ad89f8 /source3/utils | |
parent | 9770a813630d41b549068c8da54e0c050f8da64e (diff) | |
download | samba-08036f0f3d3a1dbddc6b3aaba976670e80e47cab.tar.gz samba-08036f0f3d3a1dbddc6b3aaba976670e80e47cab.tar.bz2 samba-08036f0f3d3a1dbddc6b3aaba976670e80e47cab.zip |
support smbcontrol sending messages to itself (for testing purposes)
(This used to be commit 5dfae86dab50fba1890d0ce33fa9d68f12bc0bfa)
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/smbcontrol.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |