Merge pull request #67 from TitouanT/c_args

fixed c args and added node lockfile to .gitignore
This commit is contained in:
Brian Seymour 2021-02-03 21:47:46 -06:00 committed by GitHub
commit 178ddf19d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
api/api api/api
api/package-lock.json
lxc/i lxc/i
lxc/lockfile lxc/lockfile

View File

@ -1,5 +1,5 @@
#!/usr/bin/bash #!/usr/bin/bash
cd /tmp/$2 cd /tmp/$2
gcc -std=c11 -o binary -x c code.code timeout -s KILL 10 gcc -std=c11 -o binary -x c code.code
timeout -s KILL 3 xargs -a args.args ./binary < stdin.stdin timeout -s KILL 3 xargs -a args.args -d '\n' ./binary < stdin.stdin