diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-09-09 05:57:34 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-09-09 05:57:34 +0000 |
commit | 6e4fb64e6141727b8144bb77265bf0a4a8450a39 (patch) | |
tree | 363bf9f26d72a0800bf1f0ddae0c15064c18239d /util.c | |
parent | 37863201ad549b11ce70ecfb1e348165637f2e44 (diff) | |
download | rsync-6e4fb64e6141727b8144bb77265bf0a4a8450a39.tar.gz rsync-6e4fb64e6141727b8144bb77265bf0a4a8450a39.tar.bz2 rsync-6e4fb64e6141727b8144bb77265bf0a4a8450a39.zip |
added finddead target, removed dead code and made some functions
static
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -253,7 +253,7 @@ static int full_write(int desc, char *ptr, int len) for an error. derived from GNU C's cccp.c. */ -int safe_read(int desc, char *ptr, int len) +static int safe_read(int desc, char *ptr, int len) { int n_chars; @@ -410,14 +410,6 @@ int name_to_gid(char *name, gid_t *gid) } -/**************************************************************************** -check if a process exists. -****************************************************************************/ -int process_exists(int pid) -{ - return(kill(pid,0) == 0 || errno != ESRCH); -} - /* lock a byte range in a open file */ int lock_range(int fd, int offset, int len) { |