Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!rutgers!usc!wuarchive!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!news.funet.fi!hydra!kreeta!wirzeniu From: wirzeniu@cs.Helsinki.FI (Lars Wirzenius) Newsgroups: comp.lang.c Subject: Re: TURBO C: signal(SIGINT, ); DOS calls ok from this handler. Message-ID: <10249@hydra.Helsinki.FI> Date: 3 Jan 91 17:34:18 GMT References: <15795.2780a5d4@levels.sait.edu.au> <10229@hydra.Helsinki.FI> <1991Jan03.113611.4796@ecst.csuchico.edu> Sender: news@cs.Helsinki.FI Organization: University of Helsinki, Department of Computer Science Lines: 14 In article <1991Jan03.113611.4796@ecst.csuchico.edu> madams@ecst.csuchico.edu (Michael E. Adams) writes: >Your a little off base here. DOS reentrance is not a problem when >servicing int 23h. The default handler from signal(SIGINT, func); I wasn't talking about that, however. The C library itself (printf being the particular case) need not be reentrant: it might use static data structures etc. This has nothing to do with MS-DOS specifically, it's just as true for UNIX and other environments with implementations of the C language. I have been unable to recreate the problem with the program crashing after about 25 interruptions. Maybe the problem lies elsewhere after all? Lars Wirzenius wirzeniu@cs.helsinki.fi wirzenius@cc.helsinki.fi