Darragh O'Reilly baf31fdeee Ensure pid file is removed when metadata ns daemon receives SIGTERM
These files from the metadata namespace proxy are not being removed
because delete_pid() is registered with atexit. This means it only runs
when a process exits normally and won't run when a process receives a
signal.

This patch registers a signal handler for SIGTERM that calls exit()
to make the process exit normally so delete_pid() gets called.

Fixes bug: 1223250

Change-Id: I6309802e2109359560ccc084559ec8e4d310cce2
2013-09-10 09:06:28 +00:00
..
2013-08-16 10:10:30 +08:00
2013-07-06 15:02:43 -04:00
2013-07-06 15:02:43 -04:00
2013-08-15 22:58:14 +03:00
2013-08-07 21:19:25 +00:00
2013-07-13 15:35:22 +08:00
2013-07-06 15:02:43 -04:00