Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++-ify rungard. #2344

Merged
merged 8 commits into from
Jun 11, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove unnecessary macros for a C++ file.
  • Loading branch information
meisterT committed May 30, 2024
commit 7e23f6e1e659d2431ce8ce7927bbf3299a3b6d69
9 changes: 0 additions & 9 deletions judge/runguard.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@
/* Some system/site specific config: VALID_USERS, CHROOT_PREFIX */
#include "runguard-config.h"

/* For chroot(), which is not POSIX. */
#define _DEFAULT_SOURCE
/* For unshare() used by cgroups. */
#define _GNU_SOURCE

#include <sys/types.h>
#include <sys/wait.h>
#include <sys/param.h>
Expand Down Expand Up @@ -100,10 +95,6 @@ const struct timespec cg_delete_delay = { 0, 10000000L }; /* 0.01 seconds */

extern int errno;

#ifndef _GNU_SOURCE
extern char **environ;
#endif

const int exit_failure = -1;

char *progname;
Expand Down