Skip to content

Commit 1f13095

Browse files
committed
Add exit codes to qrexec.h
They were open-coded all over the place, and status 126 ("Request refused") used when other statuses would be more appropriate. This just adds the exit codes. It doesn't change any existing behavior.
1 parent daee92e commit 1f13095

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

libqrexec/qrexec.h

+7
Original file line numberDiff line numberDiff line change
@@ -173,4 +173,11 @@ enum {
173173
// support only very small configuration files,
174174
#define MAX_CONFIG_SIZE 4096
175175

176+
// Exit codes
177+
178+
// Service call refused
179+
#define QREXEC_EXIT_REQUEST_REFUSED 126
180+
// Problem with qrexec itself
181+
#define QREXEC_EXIT_PROBLEM 125
182+
176183
#endif /* QREXEC_H */

0 commit comments

Comments
 (0)