Skip to content

Commit

Permalink
ltp: modify user code for fdcheck compatibility
Browse files Browse the repository at this point in the history
Signed-off-by: hujun5 <[email protected]>
  • Loading branch information
hujun260 authored and extinguish committed Aug 31, 2023
1 parent 02ebc2f commit d5e75eb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ int main(void)
{
/* Use some arbitrary but high number for the descriptor. */
#ifdef CONFIG_FDCHECK
if (mq_close((mqd_t) fdcheck_protect(274)) != -1) {
if (mq_close((mqd_t) (OPEN_MAX - 1)) != -1) {
#else
if (mq_close((mqd_t) 274) != -1) {
#endif
Expand Down

0 comments on commit d5e75eb

Please sign in to comment.