dhcpcd doesn't run indefinitely

My problem seems to be with dhcpcd, it doesn't automatically reconnect if it loses the wireless signal.
I had to move my wireless router, and I'm not getting as good recpetion as before.
I'll sometimes lose my wireless connection. If I'm doing a large download, I'll come back 15 minutes later to find I lost the connection, and dhcpcd doesn't reconnect automatically.

From what I've read in the MAN pages and lots of google-ing it seems using the parameter "-t 0"
will make dhcpcd look for a lease (ip) indefinitely if it looses the connection. (that's how I understand it).

But my system won't ever reconnect automatically, I have to type-in "dhcpcd wlan0" to re-connect.
Is there something I'm missing?

I guess I misinterpreted the -t 0 feature.
I looks like that it tries indefinitely "on its first attempt", then connects, eventually, then if it should lose the connection... that's it.. done.. no more trying.

I did as suggested and got the following to work.
I can program, but Bash script is new to me, so I put this together from google-ing similar examples.
It works good enough for me...