[Linux-Discussion] fork in thread question

  • From: Acorbuleanu <Acorbuleanu@xxxxxxxxxxxxx>
  • To: "linux-discussion@xxxxxxxxxxxxxxxxx" <linux-discussion@xxxxxxxxxxxxxxxxx>
  • Date: Tue, 06 Feb 2001 17:44:45 -0600

Hi,

I gotta RH box which has to run some kind of a
monitoring process in background and in the meanwhile
a menu system on the screen.

I did something like this:

    thread() // menu system
        fork() // monitoring process
        {
            execl() // required part of the monitoring process to change
the monitored destination
            ;
        }

Everything works fine but the thread goes into the background and I lose

the control over the console. In other words, I lose the menus.

Any idea how to fix this?

Thanks,
Adrian


=============================================================
Avenir Web's Linux Discussion List

List info: //www.freelists.org/cgi-bin/webpage?webpage_id=13
To unsubscribe: email linux-discussion-request@xxxxxxxxxxxxx
with 'unsubscribe' in the Subject line.

Administrative contact: weez@xxxxxxxxxxxxxx
=============================================================

Other related posts:

  • » [Linux-Discussion] fork in thread question