Skip to content

Commit

Permalink
daemonize.c: fix error path
Browse files Browse the repository at this point in the history
If there's an error in ipc_sync_done(), we don't want to call it again.

Reported by:	clang19 scan-build
  • Loading branch information
gperciva committed Nov 26, 2024
1 parent 96c9bd8 commit 07ffcb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/daemonize.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ daemonize(const char * spid)
* releasing them for the benefit of leak checkers.
*/
if (ipc_sync_done(IS))
goto err1;
goto err0;

/* We have been poked by the child. Exit. */
_exit(0);
Expand Down

0 comments on commit 07ffcb3

Please sign in to comment.