Movatterモバイル変換


[0]ホーム

URL:


Problem with trapping SIGALRM

Michael Hudsonmwh21 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-listmailing list

[8]ページ先頭

©2009-2025 Movatter.jp