credential-cache--daemon: delete socket from main()
commit18a3de4214668b5b82561ec096f7ef6858d25555
authorMichael Haggerty <mhagger@alum.mit.edu>
Mon, 10 Aug 2015 09:47:50 +0000 (10 11:47 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 12 Aug 2015 21:50:11 +0000 (12 14:50 -0700)
treeadadd2d4e406dd5fbc5a0f163be1c6e1cdaa207e
parentebebeaea0a2b4861c00f31c42880599ec701adb9
credential-cache--daemon: delete socket from main()

main() is responsible for cleaning up the socket in the case of
errors, so it is reasonable to also make it responsible for cleaning
it up when there are no errors. This change also makes the next step
easier.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
credential-cache--daemon.c