Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site burl.UUCP Path: utzoo!watmath!clyde!burl!rcj From: rcj@burl.UUCP (R. Curtis Jackson) Newsgroups: net.unix-wizards,net.lang.c Subject: USG 5.0 r2: can my program tell if it is in background/nohup'd? Message-ID: <522@burl.UUCP> Date: Thu, 9-Aug-84 16:56:43 EDT Article-I.D.: burl.522 Posted: Thu Aug 9 16:56:43 1984 Date-Received: Fri, 10-Aug-84 02:21:24 EDT Organization: AT&T Technologies; Burlington, NC Lines: 23 Is there any way for me to make some test and see if I am running in the background? I have an assembler package that calls m4(1), runs my own yacc/lex preprocessor, passes pseudocode onto a meta-assembler, and conditionally calls a linkage editor. I catch SIGINT because I need to do tempfile cleanup, but when this package is run nohup'd in the background and the user hits a delete or break in his login shell, the interrupt punches through nohup (nohup does nothing with signal 2) and kills the nohup'd process!! This is not good. These assemblies are large and may take 20 minutes. Try not hitting delete or break for 20 minutes on Unix and you'll see that this can be both irritating and impossible. Thanks for any help/pointers, -- He gave the novice a long, icy stare and quietly growled, "RTFM". The MAD Programmer -- 919-228-3313 (Cornet 291) alias: Curtis Jackson ...![ ihnp4 ulysses cbosgd we13 ]!burl!rcj ...![ ihnp4 cbosgd akgua masscomp ]!clyde!rcj