npm/npm — pull request #6807 by smikes (2014-11-28 13:04:41+00:00)
Title: Rebased 2716 graceful restart

Supersedes #2716 which became nonmergeable due to age
Includes @scien's change (unsquashed because I don't know how to squash and retain credit)
Formatting fix
Unit test