[rabbitmq-discuss] Can't process_flag(trap_exit, true) in process
Alexandru Scvorţov
alexandru at rabbitmq.com
Fri Feb 10 09:38:04 GMT 2012
Hi David,
> I create a connection and channel in process 1, and subscribe a queue with process 2, which created by "spawn_link" in process 1, if I run "process_flag(trap_exit, true)" in process 1, the process 2 will receive a 'basic.cancel' message for the subscribe queue. If I don't run "process_flag(trap_exit, true)" in process 1, the process 2 will never receive that.
I don't follow. Are you saying that running "process_flag(trap_exit,
true)" in process 1, the queue will get deleted immediately (and hence
process 2 will receive a basic.cancel)?
Could you post your code please?
Cheers,
Alex
On Fri, Feb 10, 2012 at 08:22:10AM +0000, Liuzhuofu wrote:
> Hi all:
> I found a strange thing:
> I create a connection and channel in process 1, and subscribe a queue with process 2, which created by "spawn_link" in process 1, if I run "process_flag(trap_exit, true)" in process 1, the process 2 will receive a 'basic.cancel' message for the subscribe queue. If I don't run "process_flag(trap_exit, true)" in process 1, the process 2 will never receive that.
> Why ?
>
> Regards,
> David
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
More information about the rabbitmq-discuss
mailing list