Displaying 2 results from an estimated 2 matches for "am_receiver".
2005 Nov 24
10
Any change of rsync using threads instead of fork?
On a typical embedded Linux device, with no MMU, there is no fork() or
it returns ENOSYS.
The nearest replacements are vfork() (which is only useful before
exec*()), or to create threads with pthread_create().
rsync would be a very useful program on such devices, and I was a bit
disappointed to build it, only to find the compile went fine but it
failed at runtime due to ENOSYS.
Is there any
2015 Jul 11
2
C coding tips please / Localisation
...#include <locale.h>
#endif
extern int verbose;
Further down, below a lot of "extern" declarations, I added the following
line ...
#define _(String) gettext (String)
... so that the code becomes as follows.
extern struct filter_list_struct daemon_filter_list;
uid_t our_uid;
int am_receiver = 0; /* Only set to 1 after the receiver/generator fork. */
int am_generator = 0; /* Only set to 1 after the receiver/generator fork. */
int local_server = 0;
int daemon_over_rsh = 0;
mode_t orig_umask = 0;
int batch_gen_fd = -1;
/* Following line added for Localisation. */
#define _(String) gett...