#include "chroot.h"
#include "caps.h"
+#include "setproctitle.h"
enum {
AVAHI_CHROOT_SUCCESS = 0,
return ret;
}
-int avahi_chroot_helper_start(void) {
+int avahi_chroot_helper_start(const char *argv0) {
int sock[2];
pid_t pid;
/* Drop all remaining capabilities */
avahi_caps_drop_all();
+
+ avahi_set_proc_title("%s: chroot helper process", argv0);
close(sock[0]);
helper_main(sock[1]);