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

cptbox: remove last vestiges of WSL 1 support #907

Merged
merged 1 commit into from
Sep 13, 2021
Merged
Changes from all commits
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
7 changes: 0 additions & 7 deletions dmoj/cptbox/ptproc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,7 @@ int pt_process::monitor() {
while (true) {
clock_gettime(CLOCK_MONOTONIC, &start);

#ifdef WSL1
// WSL1 currently doesn't support waiting on process groups.
// Hence, we must assume there is only one subprocess at all times.
// This assumption is valid for normal case of DMOJ usage.
pid = wait4(-1, &status, __WALL, &_rusage);
#else
pid = wait4(-pgid, &status, __WALL, &_rusage);
#endif

clock_gettime(CLOCK_MONOTONIC, &end);
timespec_sub(&end, &start, &delta);
Expand Down