Skip to content

Commit

Permalink
Add exit codes to qrexec.h
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
DemiMarie committed Apr 17, 2024
1 parent daee92e commit 1f13095
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libqrexec/qrexec.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,4 +173,11 @@ enum {
// support only very small configuration files,
#define MAX_CONFIG_SIZE 4096

// Exit codes

// Service call refused
#define QREXEC_EXIT_REQUEST_REFUSED 126
// Problem with qrexec itself
#define QREXEC_EXIT_PROBLEM 125

#endif /* QREXEC_H */

0 comments on commit 1f13095

Please sign in to comment.