Skip to content

Commit 96e5444

Browse files
committed
Return error code on server failure
This is particularly useful when started by systemd. Without this change, the service exits normally without telling systemd it started, leading to an unhelpful "protocol" message from systemd.
1 parent 3aff412 commit 96e5444

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/fluidsynth.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,6 +1137,10 @@ int main(int argc, char **argv)
11371137
#endif
11381138
delete_fluid_server(server);
11391139
}
1140+
else if(with_server)
1141+
{
1142+
result = 1;
1143+
}
11401144

11411145
#endif /* NETWORK_SUPPORT */
11421146

0 commit comments

Comments
 (0)