A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/102354.html below:

Problem with trapping SIGALRM

Problem with trapping SIGALRM Problem with trapping SIGALRMMichael Hudson mwh21 at cam.ac.uk
Sun Apr 29 07:26:47 EDT 2001
bnewell at linux.chungkuo.org (Chung Kuo) writes:

> Can anyone say what I've got wrong here or suggest a way to do what
> I am trying to do?

Something like:

/>> def exec_lim():
|..     pid = os.fork()
|..     if pid == 0:
|..         signal.alarm(1)
|..         os.execv("/bin/sh",["sh"])
|..     else:
|..         os.waitpid(pid,os.P_WAIT)
\__ 

?

Cheers,
M.

-- 
  > Look I don't know.  Thankyou everyone for arguing me round in
  > circles.
  No need for thanks, ma'am; that's what we're here for.
                                    -- LNR & Michael M Mason, cam.misc

More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4