diff options
author | Andrew Tridgell <tridge@samba.org> | 1996-08-17 11:37:44 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1996-08-17 11:37:44 +0000 |
commit | ec3d53963064b50ff33e8eff47812aac82f164ba (patch) | |
tree | fd62b3c64b3d395245addd15032744e269dd3e45 /source/lib/util.c | |
parent | 15c1c848506cdb9e8d19ee9f7c250b90b60b76da (diff) | |
download | samba-ec3d53963064b50ff33e8eff47812aac82f164ba.tar.gz samba-ec3d53963064b50ff33e8eff47812aac82f164ba.tar.xz samba-ec3d53963064b50ff33e8eff47812aac82f164ba.zip |
- added support for Amiga-unix (based on BSD I think)
- changed the order of PROGS and SPROGS in Makefile (SPROGS first)
- another 64 bit cleanup (for INADDR_NONE)
- added paranoia code in DirCacheAdd() to detect looping
- fixed important DirCache flush bug
- rewrote the NetServerEnum code after I found it could return servers
from multiple workgroups at once, and this could cause browsing
havoc. Now a null workgroup query is equivalent to a query for the
servers primary workgroup
- got rid of my_workgroup()
- got rid of "workgroup = *" comment in Makefile. We no longer support
a workgroup of *, users must set the workgroup explicitly
- the wins.dat file was being stored in a different format to what it
was being loaded in - this could cause havoc. fixed.
- uppercase our netbios name and the workgroup name at startup
- if accept fails in main loop when running as a daemon then continue,
don't just exit!
- don't use ./ on smbclient in smbtar
- better code to detect if a process exists
Diffstat (limited to 'source/lib/util.c')
-rw-r--r-- | source/lib/util.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source/lib/util.c b/source/lib/util.c index aeaac29ae12..5ef1d21a7aa 100644 --- a/source/lib/util.c +++ b/source/lib/util.c @@ -3089,11 +3089,8 @@ BOOL process_exists(int pid) } } - /* a best guess for non root access */ - if (geteuid() != 0) return(True); - - /* otherwise use kill */ - return(pid == getpid() || kill(pid,0) == 0); + /* CGH 8/16/96 - added ESRCH test */ + return(pid == getpid() || kill(pid,0) == 0 || errno != ESRCH); #endif } |