[procps] [jieming_wang@xxxxxxxxxxx: Unable to run top -n 1 with fork]

  • From: Craig Small <csmall-procps@xxxxxxxxxx>
  • To: Procps-ng Mail list <procps@xxxxxxxxxxxxx>
  • Date: Fri, 26 Oct 2012 18:56:00 +1100

Caught this one on the old mail list.
I see it with a recent top.  I don't think its a release stopper.
Jim, think you can fix it before this release or can it wait?

 - Craig

----- Forwarded message from Jieming Wang <jieming_wang@xxxxxxxxxxx> -----
   I received the following error when I am trying to run top in forked:

   top: failed tty set: Input/output error

   Any help will be appreciated.

   ====perl code====

   #!/usr/bin/perl

   unless (fork) {
       while (1)  {
            my $output = `top -n 1`;
            print $output;
            sleep 15;
       }
       print "Fail to fork\n";
   }

   ==linux releases
   2.6.18-194.8.1.el5
   2.6.18-274.12.1.el5xen

   Thanks
   Jieming

----- End forwarded message -----

-- 
Craig Small VK2XLZ   http://enc.com.au/          csmall at : enc.com.au
Debian GNU/Linux     http://www.debian.org/      csmall at : debian.org
GPG fingerprint:     5D2F B320 B825 D939 04D2  0519 3938 F96B DF50 FEA5

Other related posts: