svn commit: samba r14079 - in branches/SAMBA_4_0/source: cldap_server kdc ldap_server nbt_server smb_server smbd web_server winbind wrepl_server

Stefan (metze) Metzmacher metze at
Thu Mar 9 20:25:39 GMT 2006

Hash: SHA1

simo schrieb:
> On Thu, 2006-03-09 at 17:48 +0000, metze at wrote:
>> Author: metze
>> Date: 2006-03-09 17:48:41 +0000 (Thu, 09 Mar 2006)
>> New Revision: 14079
>> WebSVN:
>> Log:
>> I just found the setproctitle library from alt linux:-)
>> - add set_title hook to the process models
>> - use setproctitle library in process_model standard if available
>> - the the title for the task servers and on connections
> This is a very not portable thing, and in my opinion also dangerous,
> IIRC it plays with a portion of memory you are not supposed to touch on
> Linux. If I remember it correctly some BSD has a reliable system call to
> do that, but in any case I do not see any advantage in being not
> consistent across platforms.

Ok, I added a --with-setproctitle configure option which is off by default.

I think it's worth having it because such a 'ps ax' output:

11839 pts/4    S+     0:00 bin/smbd -i --option=interfaces=vmnet9
- --option=wreplsrv:scavenging_interval=300 -d 4 --option=m
11840 pts/4    S+     0:00 smbd: task[smbsrv]
11841 pts/4    S+     0:00 smbd: task[dcesrv]
11842 pts/4    S+     0:00 smbd: task[nbtd]
11843 pts/4    S+     0:00 smbd: task[wreplsrv]
11844 pts/4    S+     0:00 smbd: task[cldapd]
11845 pts/4    S+     0:00 smbd: task[ldapsrv]
11846 pts/4    S+     0:00 smbd: task[kdc]
11847 pts/4    S+     0:01 smbd: task[websrv]
12250 pts/4    S+     0:00 smbd: conn[smbsrv] c[] s[] server_id[12250]

is really good for debugging,

and this library works fine for me on linux

- --

Stefan Metzmacher <metze at>
Version: GnuPG v1.2.3-nr1 (Windows XP)
Comment: Using GnuPG with Mozilla -


More information about the samba-technical mailing list