diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2014-09-03 15:09:11 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-09-03 10:24:21 +0100 |
commit | 1bfc6a45e7ba81d3537ea3ae8b176f5a9c206eaa (patch) | |
tree | 03c172f76437ff9d158dc8db18c5883bf356e279 /meta/recipes-extended/texi2html | |
parent | 020065d3c57ccdc86c47cd0fc288071cdd194bbc (diff) | |
download | openembedded-core-1bfc6a45e7ba81d3537ea3ae8b176f5a9c206eaa.tar.gz openembedded-core-1bfc6a45e7ba81d3537ea3ae8b176f5a9c206eaa.tar.bz2 openembedded-core-1bfc6a45e7ba81d3537ea3ae8b176f5a9c206eaa.zip |
rpcbind: avoid entering failed status after stopping daemon
Exiting with '2' is actually expected with rpcbind, because it catches
SIGTERM and exits with '2' explicitly.
The related code is as follows.
(void) signal(SIGTERM, terminate);
/*
* Catch the signal and die
*/
static void
terminate(int dummy /*__unused*/)
{
close(rpcbindlockfd);
unlink(_PATH_RPCBINDSOCK);
unlink(RPCBINDDLOCK);
syslog(LOG_ERR,
"rpcbind terminating on signal. Restart with \"rpcbind -w\"");
write_warmstart(); /* Dump yourself */
exit(2);
}
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/texi2html')
0 files changed, 0 insertions, 0 deletions