sh (pid 1081) segfaults for page address 00000000 at pc 00000000

walter harms wharms at bfs.de
Mon Jan 26 17:39:41 UTC 2009




Cathey, Jim schrieb:
> So you're looking at the string output of pidof?
> If proc's not there, I don't think that:
> 
> 	if [ "" ]
> 

whatever he does it should no crash ash


> is highly meaningful.  (Hence the -z suggestion?)
> When I use pidof to probe for a process, I use
> its exit status:
> 
> 	if pidof <foo> >/dev/null
> 

pidof <foo> >/dev/null || restart_foo

> -- Jim
> 
> 
> 
> 
> 
> 


More information about the busybox mailing list