[Surfraw-devel] Bug#928252: surfraw: extra /bin/sh hanging in memory

Dmitry Bogatov KAction at debian.org
Tue Apr 30 16:03:29 BST 2019

Package: surfraw
Version: 2.3.0-0.2
Severity: wishlist

Dear Maintainer,

when I invoke "BROWSER=w3m surfraw duckduckgo my-search-term" I get
following pstree:


Notice, there is multiple /bin/sh processes hanging in memory while I am
browsing. At least first of them is caused by following code in
/usr/bin/surfraw (lines 671-678):

	if [ -x "$localelvidir/$elvi" ]
		sh -c "$localelvidir/$elvi $opts $searchterms"
	elif [ -x "$elvidir/$elvi" ]
		sh -c "$elvidir/$elvi $opts $searchterms"

There is no more code after those 'sh -c', so adding 'exec' would
improve code.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/surfraw-devel/attachments/20190430/2afedb7d/attachment.sig>

More information about the Surfraw-devel mailing list