svn commit: samba r22959 - in branches/SAMBA_4_0/source/lib/events: .

Volker Lendecke Volker.Lendecke at SerNet.DE
Thu May 17 07:47:33 GMT 2007


On Thu, May 17, 2007 at 02:18:30AM +0000, tridge at samba.org wrote:

> cope with a rather interesting interaction between epoll() and
> fork(). See
> http://junkcode.samba.org/ftp/unpacked/junkcode/epoll_fork.c for why
> this is needed


....


> @@ -68,7 +71,9 @@
>  */
>  static void epoll_fallback_to_select(struct std_event_context *std_ev, const char *reason)
>  {
> +	const char *cmd = talloc_asprintf(std_ev, "xterm -e gdb --pid %u", getpid());
>  	DEBUG(0,("%s (%s) - falling back to select()\n", reason, strerror(errno)));
> +	system(cmd);
>  	close(std_ev->epoll_fd);
>  	std_ev->epoll_fd = -1;

Did you mean to check in this hunk?

Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20070517/2d4921bc/attachment.bin


More information about the samba-technical mailing list