> -----Original Message----- > From: [email protected] [mailto:rsyslog- > [email protected]] On Behalf Of Michael Biebl > Sent: Thursday, January 10, 2013 7:44 PM > To: rsyslog-users > Subject: Re: [rsyslog] Privilege drop makes stopping it (via Ubuntu > upstart) to hang > > 2013/1/10 Rainer Gerhards <[email protected]>: > > > > I think I found the culprit: signaling the parent probably does no > longer work when privs are dropped: > > > > > http://git.adiscon.com/?p=rsyslog.git;a=blob;f=tools/syslogd.c;h=bd5b52 > cae06eb28cd80fb0afc503276b10c342f2;hb=HEAD#l2003 > > yeah, you can't kill a root process as unprivileged user. > > > Now I need to think how to handle that... > > So you need some kind of communication channgel between the parent and > the child process? You could use a unix domain socket [1] for this.
Yeah, I was thinking of a smaller change. It will probably sufficient if I send sigterm before dropping privs, but I need to check things a bit ;) Rainer _______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com/professional-services/ What's up with rsyslog? Follow https://twitter.com/rgerhards NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.

