Print this page
10703 smatch unreachable code checking needs reworking
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>

*** 19,29 **** * CDDL HEADER END */ /* * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. ! * Copyright 2018 Joyent, Inc. */ /* * restarter.c - service manipulation * --- 19,29 ---- * CDDL HEADER END */ /* * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. ! * Copyright 2019 Joyent, Inc. */ /* * restarter.c - service manipulation *
*** 2088,2105 **** restarter_event_release(e); MUTEX_LOCK(&ru->restarter_update_lock); } } - - /* - * Unreachable for now -- there's currently no graceful cleanup - * called on exit(). - */ - (void) scf_handle_unbind(h); - scf_handle_destroy(h); - return (NULL); } static restarter_inst_t * contract_to_inst(ctid_t ctid) { --- 2088,2097 ----