You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golan...@googlegroups.com
In C , I can use setitimer after fork, and signal SIGALARM Periodically.But In Go I have no idea about how to use syscall setitimer to child process. Is there any way to specify the pid of setitimer after os.StartProcess?
Ian Lance Taylor
unread,
Jun 30, 2014, 11:07:30 AM6/30/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to GaoPeng(高朋), golang-nuts
What do you really want to do?
Two other ways to approach this, depending on your goals, are
time.NewTicker and the runtime/pprof package.
Ian
GaoPeng(高朋)
unread,
Jun 30, 2014, 8:07:38 PM6/30/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golan...@googlegroups.com, gaop...@gmail.com
I want use ptrace to trace a untrusted code to limit it's resource like CPU time , memory and syscall. So I want tracee process signal SIGALARM in order to make tracer stop it and have a check for the resource usage. The methods you give applys for the current process.
GaoPeng(高朋)
unread,
Jun 30, 2014, 8:23:05 PM6/30/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message