There is absolutely no way this will work.
Remember: func2()
could be called from ANYWHERE, not only func1()
. How would you know that it is func1 you are stopping.
Whatever it is that made you think interrupting the calling function would solve the problem - think again, and tell us about the bigger picture for proper advice.