[BusyBox] ifup, ifdown applets

Steven Scholz steven.scholz at imc-berlin.de
Mon Nov 18 07:31:03 UTC 2002


Uwe Beutin wrote:
> 
> On Mon, 18 Nov 2002, Steven Scholz wrote:
> 
> > > Uh, a question: How else can one app send a signal to another app, if
> > > not via the PID file?! Is there another way?!
> > >
> > Using pidof!?
> >
> > I know it's a problem if you have more than one process with the same app name,
> > e.g. multi threads.
> >
> > I used " kill -s SIGUSR1 `pidof myapp` " ...
> 
> Well, I meant "From inside another application", meaning: kill(2). Can I
> do the same thing without [v]forking and system()?

Hmm. Then have a look at the sources of pidof (in busybox). Basicly going
through /proc
You could put that in your application...

Steven



More information about the busybox mailing list