Skip to content

Commit 2818e7c

Browse files
AZero13millert
authored andcommitted
Return 0 only when realtime signals are supported, not when it isn't
Otherwise, it would always return 0.
1 parent 5857cd4 commit 2818e7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/util/sig2str.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ sudo_sig2str(int signo, char *signame)
7272
(void)snprintf(signame, SIG2STR_MAX, "RTMAX-%d",
7373
(SIGRTMAX - signo));
7474
}
75+
return 0;
7576
}
76-
return 0;
7777
}
7878
#endif
7979
if (signo > 0 && signo < NSIG) {

0 commit comments

Comments
 (0)