2010-08-04 22:30:34     background program was killed when pressing CTRL+C

Document created by Aaronwu Employee on Aug 22, 2013
Version 1Show Document
  • View in full screen mode

2010-08-04 22:30:34     background program was killed when pressing CTRL+C

steven O (AFGHANISTAN)

Message: 92155   

 

As the topic , i set the ip for the ethernet interface in my program, and i run my program in background. then i ping other device in the command line. In this case, when i pressed CTRL+C,  the program "ping" and my program were killed in the same time.  If i don't set the ip in my program, all is ok.

 

my test promgram code as following :

 

main

 

{

 

   system(" ifconfig eth0 192.168.1.100");

 

   while(1)

 

  {

 

      sleep(2);

 

  }

 

  return 0;

 

}

 

 

 

the test step as following :

 

shell> my_test &

 

shell > ping 192.168.100.66

 

when pressing CTRL+C,  "my_test" was killed.

 

Why ??????

QuoteReplyEditDelete

 

 

2010-08-05 00:06:24     Re: background program was killed when pressing CTRL+C

Mike Frysinger (UNITED STATES)

Message: 92156   

 

you're probably using msh.  this bug has been fixed in trunk already with hush and will be in 2010R1.

QuoteReplyEditDelete

 

 

2010-08-05 00:30:37     Re: background program was killed when pressing CTRL+C

Sonic Zhang (CHINA)

Message: 92157   

 

hush was aslo included in 2009R1.1.

QuoteReplyEditDelete

 

 

2010-08-05 00:53:12     Re: background program was killed when pressing CTRL+C

Mike Frysinger (UNITED STATES)

Message: 92158   

 

m not terribly confident of its stability on nommu in that old version of busybox

QuoteReplyEditDelete

 

 

2010-08-05 01:54:51     Re: background program was killed when pressing CTRL+C

steven O (AFGHANISTAN)

Message: 92159   

 

Do i must use 2010R1?  i am using 2008R1 now ,  how to solve this bug in 2008R1? Thanks

QuoteReplyEditDelete

 

 

2010-08-05 02:52:28     Re: background program was killed when pressing CTRL+C

Mike Frysinger (UNITED STATES)

Message: 92161   

 

dont hit CTRL+C with backgrounded processes

Attachments

    Outcomes