Git Product home page Git Product logo

Comments (8)

skhuang avatar skhuang commented on September 6, 2024

殺檔案的地方也要 sudo su penobody 來殺?

from peaas.

ra9917048 avatar ra9917048 commented on September 6, 2024

time out的才會殺檔案
但是沒TIME OUT的也從能跑變不能跑了...

from peaas.

skhuang avatar skhuang commented on September 6, 2024

gcc 也要 sudo 執行,這樣執行時 gcov 相關檔才能寫。

from peaas.

ra9917048 avatar ra9917048 commented on September 6, 2024

是'/usr/bin/sudo /bin/su gcc -fprofile-arcs -ftest-coverage ....'嗎
如果是的話 我加了以後好像連COMPILE的東西都變沒跑出來...

from peaas.

skhuang avatar skhuang commented on September 6, 2024

Please use diff to see my revisions:
diff faultloc_abpath.py faultloc_abpath.py.orig
diff FL.php FL-orig.php

Several modifications

  1. I appended randinfo to the filename to use different path for each session.
  2. chmod 1777 to ufiles.
  3. add back sudo to change user to run target programs.

from peaas.

ra9917048 avatar ra9917048 commented on September 6, 2024

time out殺檔案的2行
os.system("bash -c 'kill -s SIGUSR1 %i'" %p.pid)
os.system('kill %i' %p.pid)
貌似沒執行到?
或許也要加'/usr/bin/sudo /bin/su'

from peaas.

ra9917048 avatar ra9917048 commented on September 6, 2024

無窮迴圈刪不掉還是存在

/bin/kill -s SIGUSR1 說command not found

/bin/kill 則是沒權限的樣子

from peaas.

skhuang avatar skhuang commented on September 6, 2024

用 pgrep -u penobody -l

pgrep -u penobody 470430732loop
可取得所有 pid

from peaas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.