SIGTTIN signal when running process in the background (ksh SunOS 5.6)

Ask a Question related to UNIX Programming, Design and Development.

  1. #1

    Default Re: SIGTTIN signal when running process in the background (ksh SunOS 5.6)

    Stephane CHAZELAS wrote:
    > to read(2) system calls. The libc scanf(3) function performs
    > such calls.
    <big snip>
    > You can play around with "ps -j", perl -e 'iotcl(...', and the
    > setsid(1) command (you may not have it) so see how things work.
    >
    > If you have a GNU system, look at: info -f libc -n 'Job Control'
    Stephane,

    Thanks. :)
    i learned a lot from your post.

    --
    ----- stephan beal
    Registered Linux User #71917 [url]http://counter.li.org[/url]
    I speak for myself, not my employer. Contents may
    be hot. Slippery when wet. Reading disclaimers makes
    you go blind. Writing them is worse. You have been Warned.

    stephan beal Guest

  2. Similar Questions and Discussions

    1. Executing a background process
      I’m writing a web page that allows users to reset their own Terminal Services session. The app needs to execute a program in the background (on...
    2. Listener background process
      Does anyone know how to set up a process that will run continually in the background? (like the mouse or key listner object) I need to define my...
    3. running .exe in PHP, but not as a process
      I am using PHP as an ISAPI module, and I have an executable (.exe) file that must be run from PHP, but not as a "background process". For example if...
    4. exec background process
      I want have PHP call another process (another PHP script at the moment but it may end up being a binary) in the background and not wait for process...
    5. Background process
      I have a script that starts a background process and redirects. The background process is a PHP script that is started with an exec() call. The...
  3. #2

    Default Re: SIGTTIN signal when running process in the background (ksh SunOS 5.6)

    In article <c9b7e912.0307211108.5b20f536@posting.google.com >,
    Gabriel <gabielex@hotmail.com> wrote:
    >The funny thing is that I added some code to generate a core file when
    >the signal SIGTTIN is catched, to see if I can find out what function
    >call is triggering the signal. Well, compiled the code and now I can't
    >reproduce the error again. It just seems to work fine running in the
    >background. Weird.
    >
    >I've fixed some bugs in other parts of the code in the meantime so I
    >don't know what may have affeced to this. Well, I'll let you know when
    >(if) I find out.
    Some ioctls on a terminal device will also signal SIGTTIN. Maybe you were
    doing these to stdin, and your changes removed them.

    --
    Barry Margolin, [email]barry.margolin@level3.com[/email]
    Level(3), Woburn, MA
    *** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
    Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
    Barry Margolin Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139