summaryrefslogtreecommitdiff
path: root/source/smbd/process.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-01-24 04:04:49 +0000
committerTim Potter <tpot@samba.org>2003-01-24 04:04:49 +0000
commitc39c54e6b6adcdab7647e36e6c1b0acbdeeaf111 (patch)
tree7fc4d44fa1d5d3cb866e0b88b8420939edaaefc6 /source/smbd/process.c
parent303710c2065850beebef678e657633497e4d8452 (diff)
downloadsamba-c39c54e6b6adcdab7647e36e6c1b0acbdeeaf111.tar.gz
Merge of increment_smbd_process_count() fix from appliance.
Diffstat (limited to 'source/smbd/process.c')
-rw-r--r--source/smbd/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/process.c b/source/smbd/process.c
index 2b92b9910fc..98ec6ce1841 100644
--- a/source/smbd/process.c
+++ b/source/smbd/process.c
@@ -807,7 +807,7 @@ static int32 increment_smbd_process_count(void)
if (lp_max_smbd_processes()) {
total_smbds = 0;
- if (tdb_change_int32_atomic(conn_tdb_ctx(), "INFO/total_smbds", &total_smbds, -1) == -1)
+ if (tdb_change_int32_atomic(conn_tdb_ctx(), "INFO/total_smbds", &total_smbds, 1) == -1)
return 1;
process_count_update_successful = True;
return total_smbds + 1;