ADDED IN RESPONSE TO COMMENTS:
These are stray dogs and not wild as they grow up amongst people. A few of them could be 'ferocious' but most co-exist very peacefully with street people.
Majority of the stray dogs in India adapt to their neighbourhood very easily, in most cases thanks to the friendly people in the locality. While there is a system in place to keep a check on strays, often their extended families (read people) jump to the defense of their friendly, harmless four legged pals.
more pics: http://Hershy.smugmug.com/gallery/3951305_mw7Dp/1/289184725_zpLUc
travel and other info on Pondicherry http://tourism.pondicherry.gov.in/